SELECT 
  product_id, 
  amount 
FROM 
  cscart_warehouses_sum_products_amount 
WHERE 
  1 
  AND product_id IN (
    111, 51212, 144, 51215, 51214, 51213, 
    51444, 51445, 51446, 51447, 51220, 
    51219, 51218, 51217, 51216, 146, 51448, 
    51449, 51231, 51230, 51229, 51228, 
    51227, 51226, 51225, 109, 51243, 51242, 
    51241, 51240, 51239, 36, 51253, 51252, 
    51251, 51250, 51249, 34, 51272, 51271, 
    51270, 51269, 51268, 51267, 51266, 
    145, 51273, 147, 51277, 51276, 51275, 
    51274
  )

Query time 0.00062

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "56.21"
    },
    "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": 96,
      "rows_produced_per_join": 96,
      "filtered": "100.00",
      "index_condition": "(`test_uchur_k`.`cscart_warehouses_sum_products_amount`.`product_id` in (111,51212,144,51215,51214,51213,51444,51445,51446,51447,51220,51219,51218,51217,51216,146,51448,51449,51231,51230,51229,51228,51227,51226,51225,109,51243,51242,51241,51240,51239,36,51253,51252,51251,51250,51249,34,51272,51271,51270,51269,51268,51267,51266,145,51273,147,51277,51276,51275,51274))",
      "cost_info": {
        "read_cost": "46.61",
        "eval_cost": "9.60",
        "prefix_cost": "56.21",
        "data_read_per_join": "1K"
      },
      "used_columns": [
        "product_id",
        "amount"
      ]
    }
  }
}

Result

product_id amount
34 3
34 3
36 3
36 3
109 3
109 3
111 1
111 1
144 4
144 4
145 4
145 4
146 4
146 4
147 2
147 2
51212 1
51212 1
51213 5
51213 5
51214 3
51214 3
51215 3
51215 3
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
51249 3
51249 3
51250 2
51250 2
51251 3
51251 3
51252 1
51252 1
51253 2
51253 2
51266 6
51266 6
51267 6
51267 6
51268 6
51268 6
51269 2
51269 2
51270 4
51270 4
51271 4
51271 4
51272 4
51272 4
51273 4
51273 4
51274 5
51274 5
51275 2
51275 2
51276 2
51276 2
51277 1
51277 1
51444 5
51444 5
51445 1
51445 1
51446 3
51446 3
51447 2
51447 2
51448 6
51448 6
51449 2
51449 2