SELECT 
  product_id, 
  amount 
FROM 
  cscart_warehouses_sum_products_amount 
WHERE 
  1 
  AND product_id IN (
    128, 51118, 51117, 51116, 51115, 51114, 
    51113, 51165, 51164, 51163, 51162, 
    51161, 52, 51183, 20, 51188, 51187, 
    51186, 51185, 51184, 51201, 51200, 
    51199, 51198, 51197, 51196, 51195, 
    131, 51220, 51219, 51218, 51217, 51216, 
    146, 51448, 51449, 51231, 51230, 51229, 
    51228, 51227, 51226, 51225, 109, 51243, 
    51242, 51241, 51240, 51239, 36, 51273, 
    147, 51277, 51276, 51275, 51274, 16, 
    114, 84, 51352, 51351, 96, 89, 51390, 
    51391, 51392, 51393, 51394
  )

Query time 0.00083

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "77.31"
    },
    "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": 134,
      "rows_produced_per_join": 134,
      "filtered": "100.00",
      "index_condition": "(`test_uchur_k`.`cscart_warehouses_sum_products_amount`.`product_id` in (128,51118,51117,51116,51115,51114,51113,51165,51164,51163,51162,51161,52,51183,20,51188,51187,51186,51185,51184,51201,51200,51199,51198,51197,51196,51195,131,51220,51219,51218,51217,51216,146,51448,51449,51231,51230,51229,51228,51227,51226,51225,109,51243,51242,51241,51240,51239,36,51273,147,51277,51276,51275,51274,16,114,84,51352,51351,96,89,51390,51391,51392,51393,51394))",
      "cost_info": {
        "read_cost": "63.91",
        "eval_cost": "13.40",
        "prefix_cost": "77.31",
        "data_read_per_join": "2K"
      },
      "used_columns": [
        "product_id",
        "amount"
      ]
    }
  }
}

Result

product_id amount
16 23
16 23
20 2
20 2
36 3
36 3
52 2
52 2
84 18
84 18
89 8
89 8
96 4
96 4
109 3
109 3
114 25
114 25
128 3
128 3
131 2
131 2
146 4
146 4
147 2
147 2
51113 2
51113 2
51114 2
51114 2
51115 3
51115 3
51116 2
51116 2
51117 2
51117 2
51118 1
51118 1
51161 2
51161 2
51162 3
51162 3
51163 1
51163 1
51164 1
51164 1
51165 1
51165 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
51195 2
51195 2
51196 4
51196 4
51197 4
51197 4
51198 3
51198 3
51199 3
51199 3
51200 3
51200 3
51201 1
51201 1
51216 4
51216 4
51217 6
51217 6
51218 4
51218 4
51219 3
51219 3
51220 3
51220 3
51225 2
51225 2
51226 5
51226 5
51227 5
51227 5
51228 2
51228 2
51229 2
51229 2
51230 1
51230 1
51231 2
51231 2
51239 3
51239 3
51240 2
51240 2
51241 2
51241 2
51242 2
51242 2
51243 1
51243 1
51273 4
51273 4
51274 5
51274 5
51275 2
51275 2
51276 2
51276 2
51277 1
51277 1
51351 6
51351 6
51352 2
51352 2
51390 8
51390 8
51391 6
51391 6
51392 7
51392 7
51393 3
51393 3
51394 1
51394 1
51448 6
51448 6
51449 2
51449 2