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
  )

Query time 0.00078

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "71.81"
    },
    "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": 124,
      "rows_produced_per_join": 124,
      "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))",
      "cost_info": {
        "read_cost": "59.41",
        "eval_cost": "12.40",
        "prefix_cost": "71.81",
        "data_read_per_join": "1K"
      },
      "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
51047 9
51047 9
51048 7
51048 7
51051 1
51051 1
51053 1
51053 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
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
51470 4
51470 4
51471 8
51471 8
51472 6
51472 6
51473 4
51473 4
51475 4
51475 4
51477 3
51477 3
51478 4
51478 4
51479 148
51479 148
51480 147
51480 147
51486 4
51486 4
51492 1
51492 1
51494 52
51494 52
51495 52
51495 52
51500 5
51500 5
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
51547 10
51547 10
51551 3
51551 3