SELECT 
  product_id, 
  amount 
FROM 
  cscart_warehouses_sum_products_amount 
WHERE 
  1 
  AND product_id IN (
    128, 51118, 51117, 51116, 51115, 51114, 
    51113, 49, 51132, 51131, 51134, 51133, 
    51130, 41, 51155, 51154, 51153, 51152, 
    21, 51169, 51168, 51167, 51166, 90, 
    51171, 51170, 51183, 20, 51188, 51187, 
    51186, 51185, 51184, 51243, 51242, 
    51241, 51240, 51239, 36, 51294, 51293, 
    51291, 51290, 94, 18, 81, 51318, 51317, 
    51316, 51, 51319, 106, 58, 86, 15, 95, 
    51356, 51355, 44, 31, 51366, 51367, 
    51368, 51369
  )

Query time 0.00079

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "77.66"
    },
    "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": 137,
      "rows_produced_per_join": 137,
      "filtered": "100.00",
      "index_condition": "(`test_uchur_k`.`cscart_warehouses_sum_products_amount`.`product_id` in (128,51118,51117,51116,51115,51114,51113,49,51132,51131,51134,51133,51130,41,51155,51154,51153,51152,21,51169,51168,51167,51166,90,51171,51170,51183,20,51188,51187,51186,51185,51184,51243,51242,51241,51240,51239,36,51294,51293,51291,51290,94,18,81,51318,51317,51316,51,51319,106,58,86,15,95,51356,51355,44,31,51366,51367,51368,51369))",
      "cost_info": {
        "read_cost": "63.96",
        "eval_cost": "13.70",
        "prefix_cost": "77.66",
        "data_read_per_join": "2K"
      },
      "used_columns": [
        "product_id",
        "amount"
      ]
    }
  }
}

Result

product_id amount
15 31
15 31
18 34
18 34
20 2
20 2
21 2
21 2
31 3
31 3
36 3
36 3
41 3
41 3
44 4
44 4
49 1
49 1
51 4
51 4
58 35
58 35
81 31
81 31
86 27
86 27
90 1
90 1
94 1
94 1
95 13
95 13
106 22
106 22
128 3
128 3
51113 2
51113 2
51114 2
51114 2
51115 3
51115 3
51116 2
51116 2
51117 2
51117 2
51118 1
51118 1
51130 8
51130 8
51131 6
51131 6
51132 8
51132 8
51133 2
51133 2
51134 2
51134 2
51152 2
51152 2
51153 2
51153 2
51154 3
51154 3
51155 1
51155 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
51183 1
51183 1
51184 3
51184 3
51185 5
51185 5
51186 4
51186 4
51187 2
51187 2
51188 2
51188 2
51239 3
51239 3
51240 2
51240 2
51241 2
51241 2
51242 2
51242 2
51243 1
51243 1
51290 1
51290 1
51291 1
51291 1
51293 1
51293 1
51294 1
51294 1
51316 8
51316 8
51317 7
51317 7
51318 5
51318 5
51319 5
51319 5
51355 4
51355 4
51356 4
51356 4
51366 4
51366 4
51367 4
51367 4
51368 3
51368 3
51369 2
51369 2