SELECT 
  product_id, 
  amount 
FROM 
  cscart_warehouses_sum_products_amount 
WHERE 
  1 
  AND product_id IN (
    51165, 51164, 51163, 51162, 51161, 52, 
    51169, 51168, 51167, 51166, 90, 51171, 
    51170, 51176, 51174, 51173, 51172, 
    91, 51182, 51180, 51179, 51178, 51177, 
    93, 51183, 20, 51188, 51187, 51186, 
    51185, 51184, 51194, 51193, 51192, 
    51191, 51190, 51189, 19, 51201, 51200, 
    51199, 51198, 51197, 51196, 51195, 
    131, 51564, 51568, 51569, 51570, 51571, 
    51572, 51573, 51566, 51578, 51579, 
    51580, 51581
  )

Query time 0.00092

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "64.91"
    },
    "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": 112,
      "rows_produced_per_join": 112,
      "filtered": "100.00",
      "index_condition": "(`test_uchur_k`.`cscart_warehouses_sum_products_amount`.`product_id` in (51165,51164,51163,51162,51161,52,51169,51168,51167,51166,90,51171,51170,51176,51174,51173,51172,91,51182,51180,51179,51178,51177,93,51183,20,51188,51187,51186,51185,51184,51194,51193,51192,51191,51190,51189,19,51201,51200,51199,51198,51197,51196,51195,131,51564,51568,51569,51570,51571,51572,51573,51566,51578,51579,51580,51581))",
      "cost_info": {
        "read_cost": "53.71",
        "eval_cost": "11.20",
        "prefix_cost": "64.91",
        "data_read_per_join": "1K"
      },
      "used_columns": [
        "product_id",
        "amount"
      ]
    }
  }
}

Result

product_id amount
19 3
19 3
20 2
20 2
52 2
52 2
90 1
90 1
91 1
91 1
93 1
93 1
131 2
131 2
51161 2
51161 2
51162 3
51162 3
51163 1
51163 1
51164 1
51164 1
51165 1
51165 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
51172 3
51172 3
51173 3
51173 3
51174 1
51174 1
51176 1
51176 1
51177 1
51177 1
51178 1
51178 1
51179 1
51179 1
51180 1
51180 1
51182 1
51182 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
51189 3
51189 3
51190 6
51190 6
51191 6
51191 6
51192 6
51192 6
51193 3
51193 3
51194 2
51194 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
51564 1
51564 1
51566 2
51566 2
51568 2
51568 2
51569 2
51569 2
51570 2
51570 2
51571 2
51571 2
51572 1
51572 1
51573 1
51573 1
51578 2
51578 2
51579 1
51579 1
51580 1
51580 1
51581 1
51581 1