SELECT 
  product_id, 
  amount 
FROM 
  cscart_warehouses_sum_products_amount 
WHERE 
  1 
  AND product_id IN (
    82, 51076, 51073, 51072, 51074, 51075, 
    22711, 22710, 51077, 51080, 51078, 
    51079, 51132, 51131, 51134, 51133, 
    51130, 41, 51139, 51138, 51137, 51136, 
    51135, 40, 51144, 51143, 51142, 51141, 
    51140, 39, 51146, 51145, 38, 51148, 
    51147, 51150, 51149, 37, 51169, 51168, 
    51167, 51166, 90, 51171, 51170, 51205, 
    51204, 51203, 51202, 125, 51209, 51208, 
    51207, 51206, 124, 27, 22, 17, 18, 56, 
    51295, 117, 116, 115, 81, 11, 51326, 
    135, 106, 58, 57, 5, 51349, 122, 51357, 
    51360, 51359, 51358, 51361, 30, 51362, 
    51363, 51364, 51365, 65, 140, 51385, 
    51386, 51387, 51388, 51389
  )

Query time 0.00090

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "110.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": 194,
      "rows_produced_per_join": 194,
      "filtered": "100.00",
      "index_condition": "(`test_uchur_k`.`cscart_warehouses_sum_products_amount`.`product_id` in (82,51076,51073,51072,51074,51075,22711,22710,51077,51080,51078,51079,51132,51131,51134,51133,51130,41,51139,51138,51137,51136,51135,40,51144,51143,51142,51141,51140,39,51146,51145,38,51148,51147,51150,51149,37,51169,51168,51167,51166,90,51171,51170,51205,51204,51203,51202,125,51209,51208,51207,51206,124,27,22,17,18,56,51295,117,116,115,81,11,51326,135,106,58,57,5,51349,122,51357,51360,51359,51358,51361,30,51362,51363,51364,51365,65,140,51385,51386,51387,51388,51389))",
      "cost_info": {
        "read_cost": "90.66",
        "eval_cost": "19.40",
        "prefix_cost": "110.06",
        "data_read_per_join": "3K"
      },
      "used_columns": [
        "product_id",
        "amount"
      ]
    }
  }
}

Result

product_id amount
5 13
5 13
11 100
11 100
17 32
17 32
18 34
18 34
22 8
22 8
27 4
27 4
30 4
30 4
37 1
37 1
38 2
38 2
39 3
39 3
40 3
40 3
41 3
41 3
56 103
56 103
57 35
57 35
58 35
58 35
65 1
65 1
81 31
81 31
90 1
90 1
106 22
106 22
115 7
115 7
116 3
116 3
117 13
117 13
122 30
122 30
124 7
124 7
125 6
125 6
135 6
135 6
140 7
140 7
22710 16
22710 16
22711 12
22711 12
51072 22
51072 22
51073 14
51073 14
51074 7
51074 7
51075 1
51075 1
51076 1
51076 1
51077 16
51077 16
51078 13
51078 13
51079 13
51079 13
51080 5
51080 5
51130 8
51130 8
51131 6
51131 6
51132 8
51132 8
51133 2
51133 2
51134 2
51134 2
51135 8
51135 8
51136 8
51136 8
51137 8
51137 8
51138 2
51138 2
51139 2
51139 2
51140 6
51140 6
51141 6
51141 6
51142 6
51142 6
51143 3
51143 3
51144 2
51144 2
51145 7
51145 7
51146 6
51146 6
51147 4
51147 4
51148 1
51148 1
51149 1
51149 1
51150 1
51150 1
51166 1
51166 1
51167 1
51167 1
51168 1
51168 1
51169 1
51169 1
51170 1
51170 1
51171 1
51171 1
51202 5
51202 5
51203 9
51203 9
51204 6
51204 6
51205 3
51205 3
51206 5
51206 5
51207 9
51207 9
51208 4
51208 4
51209 3
51209 3
51295 13
51295 13
51326 6
51326 6
51349 30
51349 30
51357 10
51357 10
51358 9
51358 9
51359 7
51359 7
51360 2
51360 2
51361 4
51361 4
51362 6
51362 6
51363 6
51363 6
51364 3
51364 3
51365 1
51365 1
51385 10
51385 10
51386 9
51386 9
51387 9
51387 9
51388 5
51388 5
51389 5
51389 5