SELECT 
  product_id, 
  amount 
FROM 
  cscart_warehouses_sum_products_amount 
WHERE 
  1 
  AND product_id IN (
    51480, 51479, 132, 3, 2, 66, 133, 51471, 
    51459, 51470, 51472, 51529, 51460, 
    51457, 51464, 51501, 51486, 51478, 
    51469, 51461, 51467, 51473, 51477, 
    51475, 51462, 51463, 51516, 51532, 
    51458, 51514, 51468, 51476, 51491, 
    51492, 51513, 51474, 51515, 51502, 
    51518, 51466, 51512, 51465, 51482, 
    51485, 51511, 51528, 51527, 51505, 
    51493, 51535
  )

Query time 0.00077

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "55.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": 96,
      "rows_produced_per_join": 96,
      "filtered": "100.00",
      "index_condition": "(`test_uchur_k`.`cscart_warehouses_sum_products_amount`.`product_id` in (51480,51479,132,3,2,66,133,51471,51459,51470,51472,51529,51460,51457,51464,51501,51486,51478,51469,51461,51467,51473,51477,51475,51462,51463,51516,51532,51458,51514,51468,51476,51491,51492,51513,51474,51515,51502,51518,51466,51512,51465,51482,51485,51511,51528,51527,51505,51493,51535))",
      "cost_info": {
        "read_cost": "46.11",
        "eval_cost": "9.60",
        "prefix_cost": "55.71",
        "data_read_per_join": "1K"
      },
      "used_columns": [
        "product_id",
        "amount"
      ]
    }
  }
}

Result

product_id amount
2 120
2 120
3 8
3 8
66 9
66 9
132 53
132 53
133 10
133 10
51457 3
51457 3
51458 4
51458 4
51459 4
51459 4
51460 4
51460 4
51461 4
51461 4
51462 4
51462 4
51463 4
51463 4
51464 4
51464 4
51465 4
51465 4
51466 4
51466 4
51467 4
51467 4
51468 4
51468 4
51469 4
51469 4
51470 4
51470 4
51471 8
51471 8
51472 6
51472 6
51473 4
51473 4
51474 4
51474 4
51475 4
51475 4
51476 1
51476 1
51477 3
51477 3
51478 4
51478 4
51479 148
51479 148
51480 147
51480 147
51482 2
51482 2
51485 1
51485 1
51486 4
51486 4
51491 1
51491 1
51492 1
51492 1
51493 3
51493 3
51501 3
51501 3
51502 3
51502 3
51505 5
51505 5
51511 5
51511 5
51512 5
51512 5
51513 5
51513 5
51514 3
51514 3
51515 3
51515 3
51516 3
51516 3
51518 7
51518 7
51527 5
51527 5
51528 5
51528 5
51529 4
51529 4
51532 10
51532 10
51535 3
51535 3