SELECT 
  product_id, 
  amount 
FROM 
  cscart_warehouses_sum_products_amount 
WHERE 
  1 
  AND product_id IN (
    130, 51106, 51107, 51112, 51111, 51110, 
    51109, 51108, 51182, 51180, 51179, 
    51178, 51177, 93, 10, 51232, 12, 51238, 
    51237, 51236, 51235, 51234, 51233, 
    51246, 51245, 51244, 35, 51248, 51247, 
    51256, 51255, 51254, 33, 32, 51265, 
    51264, 51263, 51262, 51261, 51260, 
    51259, 110, 51281, 51280, 51279, 51278, 
    51282, 7, 51289, 51288, 51287, 51286, 
    51285, 51284, 51283, 8, 51294, 51293, 
    51291, 51290, 94, 142, 62, 141, 27, 22, 
    23, 18, 16, 54, 51313, 51312, 51314, 
    51311, 51310, 86, 51344, 120, 51345, 
    119, 108, 4, 107, 51348, 121
  )

Query time 0.00101

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "95.06"
    },
    "table": {
      "table_name": "cscart_warehouses_sum_products_amount",
      "access_type": "range",
      "possible_keys": [
        "PRIMARY"
      ],
      "key": "PRIMARY",
      "used_key_parts": [
        "product_id"
      ],
      "key_length": "3",
      "rows_examined_per_scan": 164,
      "rows_produced_per_join": 164,
      "filtered": "100.00",
      "index_condition": "(`test_uchur_k`.`cscart_warehouses_sum_products_amount`.`product_id` in (130,51106,51107,51112,51111,51110,51109,51108,51182,51180,51179,51178,51177,93,10,51232,12,51238,51237,51236,51235,51234,51233,51246,51245,51244,35,51248,51247,51256,51255,51254,33,32,51265,51264,51263,51262,51261,51260,51259,110,51281,51280,51279,51278,51282,7,51289,51288,51287,51286,51285,51284,51283,8,51294,51293,51291,51290,94,142,62,141,27,22,23,18,16,54,51313,51312,51314,51311,51310,86,51344,120,51345,119,108,4,107,51348,121))",
      "cost_info": {
        "read_cost": "78.66",
        "eval_cost": "16.40",
        "prefix_cost": "95.06",
        "data_read_per_join": "2K"
      },
      "used_columns": [
        "product_id",
        "amount"
      ]
    }
  }
}

Result

product_id amount
4 15
4 15
7 2
7 2
8 3
8 3
10 38
10 38
12 3
12 3
16 23
16 23
18 34
18 34
22 8
22 8
23 19
23 19
27 4
27 4
32 1
32 1
33 2
33 2
35 3
35 3
54 3
54 3
62 20
62 20
86 27
86 27
93 1
93 1
94 1
94 1
107 17
107 17
108 10
108 10
110 3
110 3
119 27
119 27
120 25
120 25
121 22
121 22
130 2
130 2
141 11
141 11
142 12
142 12
51106 1
51106 1
51107 3
51107 3
51108 3
51108 3
51109 2
51109 2
51110 2
51110 2
51111 1
51111 1
51112 1
51112 1
51177 1
51177 1
51178 1
51178 1
51179 1
51179 1
51180 1
51180 1
51182 1
51182 1
51232 5
51232 5
51233 6
51233 6
51234 3
51234 3
51235 2
51235 2
51236 3
51236 3
51237 1
51237 1
51238 1
51238 1
51244 6
51244 6
51245 6
51245 6
51246 2
51246 2
51247 2
51247 2
51248 2
51248 2
51254 2
51254 2
51255 1
51255 1
51256 2
51256 2
51259 4
51259 4
51260 8
51260 8
51261 5
51261 5
51262 2
51262 2
51263 4
51263 4
51264 3
51264 3
51265 3
51265 3
51278 4
51278 4
51279 5
51279 5
51280 3
51280 3
51281 2
51281 2
51282 1
51282 1
51283 4
51283 4
51284 6
51284 6
51285 3
51285 3
51286 1
51286 1
51287 3
51287 3
51288 3
51288 3
51289 3
51289 3
51290 1
51290 1
51291 1
51291 1
51293 1
51293 1
51294 1
51294 1
51310 3
51310 3
51311 4
51311 4
51312 4
51312 4
51313 5
51313 5
51314 3
51314 3
51344 15
51344 15
51345 20
51345 20
51348 10
51348 10