SELECT 
  product_id, 
  amount 
FROM 
  cscart_warehouses_sum_products_amount 
WHERE 
  1 
  AND product_id IN (
    51480, 51479, 51494, 51495, 132, 112, 
    3, 78, 2, 77, 87, 66, 22421, 22424, 22290, 
    50981, 50982, 133, 45, 143, 50983, 51416, 
    51043, 51421, 51471, 51413, 51057, 
    51472, 51547, 51470, 51500, 51412, 
    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, 51514, 51538, 51539, 
    51468, 51476, 51491, 51513, 51474, 
    51503, 51520, 51541, 51462, 51502, 
    51522, 51499, 51465, 51509, 51515, 
    51466, 51485, 51518, 51550, 51519, 
    51524, 51528, 51508, 51527, 51543, 
    51482, 51504, 51542, 51512, 51493, 
    51511, 51505, 51046, 51439, 51544, 
    51054, 51546, 51548, 51438, 51535
  )

Query time 0.00119

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "122.61"
    },
    "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": 213,
      "rows_produced_per_join": 213,
      "filtered": "100.00",
      "index_condition": "(`test_uchur_k`.`cscart_warehouses_sum_products_amount`.`product_id` in (51480,51479,51494,51495,132,112,3,78,2,77,87,66,22421,22424,22290,50981,50982,133,45,143,50983,51416,51043,51421,51471,51413,51057,51472,51547,51470,51500,51412,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,51514,51538,51539,51468,51476,51491,51513,51474,51503,51520,51541,51462,51502,51522,51499,51465,51509,51515,51466,51485,51518,51550,51519,51524,51528,51508,51527,51543,51482,51504,51542,51512,51493,51511,51505,51046,51439,51544,51054,51546,51548,51438,51535))",
      "cost_info": {
        "read_cost": "101.31",
        "eval_cost": "21.30",
        "prefix_cost": "122.61",
        "data_read_per_join": "3K"
      },
      "used_columns": [
        "product_id",
        "amount"
      ]
    }
  }
}

Result

product_id amount
2 120
2 120
3 8
3 8
45 5
45 5
66 9
66 9
77 3
77 3
78 3
78 3
87 9
87 9
112 10
112 10
132 53
132 53
133 10
133 10
143 6
143 6
22290 1
22290 1
22421 4
22421 4
22424 2
22424 2
50981 8
50981 8
50982 1
50982 1
50983 1
50983 1
51043 4
51043 4
51044 5
51044 5
51046 4
51046 4
51047 9
51047 9
51048 7
51048 7
51051 1
51051 1
51053 1
51053 1
51054 1
51054 1
51057 1
51057 1
51412 3
51412 3
51413 1
51413 1
51416 1
51416 1
51421 2
51421 2
51437 1
51437 1
51438 1
51438 1
51439 1
51439 1
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
51494 52
51494 52
51495 52
51495 52
51499 5
51499 5
51500 5
51500 5
51501 3
51501 3
51502 3
51502 3
51503 5
51503 5
51504 3
51504 3
51505 5
51505 5
51508 4
51508 4
51509 4
51509 4
51510 2
51510 2
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
51519 3
51519 3
51520 2
51520 2
51522 3
51522 3
51524 1
51524 1
51525 5
51525 5
51527 5
51527 5
51528 5
51528 5
51529 4
51529 4
51530 4
51530 4
51531 2
51531 2
51532 10
51532 10
51535 3
51535 3
51538 5
51538 5
51539 5
51539 5
51540 3
51540 3
51541 3
51541 3
51542 3
51542 3
51543 3
51543 3
51544 2
51544 2
51545 2
51545 2
51546 2
51546 2
51547 10
51547 10
51548 9
51548 9
51550 4
51550 4
51551 3
51551 3