SELECT 
  product_id, 
  amount 
FROM 
  cscart_warehouses_sum_products_amount 
WHERE 
  1 
  AND product_id IN (
    51529, 51459, 51457, 51460, 51501, 51530, 
    51464, 51051, 51053, 51551, 51478, 
    51469, 51510, 51486, 51531, 51467, 
    51047, 51461, 51044, 51475, 51477, 
    51473, 51437, 51540, 51048, 51525, 
    51458, 51463, 51516, 51532, 51545, 
    51492
  )

Query time 0.00048

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "37.71"
    },
    "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": 66,
      "rows_produced_per_join": 66,
      "filtered": "100.00",
      "index_condition": "(`test_uchur_k`.`cscart_warehouses_sum_products_amount`.`product_id` in (51529,51459,51457,51460,51501,51530,51464,51051,51053,51551,51478,51469,51510,51486,51531,51467,51047,51461,51044,51475,51477,51473,51437,51540,51048,51525,51458,51463,51516,51532,51545,51492))",
      "cost_info": {
        "read_cost": "31.11",
        "eval_cost": "6.60",
        "prefix_cost": "37.71",
        "data_read_per_join": "1K"
      },
      "used_columns": [
        "product_id",
        "amount"
      ]
    }
  }
}

Result

product_id amount
51044 5
51044 5
51047 9
51047 9
51048 7
51048 7
51051 1
51051 1
51053 1
51053 1
51437 1
51437 1
51457 3
51457 3
51458 4
51458 4
51459 4
51459 4
51460 4
51460 4
51461 4
51461 4
51463 4
51463 4
51464 4
51464 4
51467 4
51467 4
51469 4
51469 4
51473 4
51473 4
51475 4
51475 4
51477 3
51477 3
51478 4
51478 4
51486 4
51486 4
51492 1
51492 1
51501 3
51501 3
51510 2
51510 2
51516 3
51516 3
51525 5
51525 5
51529 4
51529 4
51530 4
51530 4
51531 2
51531 2
51532 10
51532 10
51540 3
51540 3
51545 2
51545 2
51551 3
51551 3