SELECT 
  product_id, 
  amount 
FROM 
  cscart_warehouses_sum_products_amount 
WHERE 
  1 
  AND product_id IN (
    21567, 51083, 22715, 51082, 51085, 51081, 
    51096, 51097, 51098, 51100, 51099, 
    22716, 51123, 51122, 51121, 92, 49, 
    51129, 51128, 51127, 51126, 51125, 
    48, 51176, 51174, 51173, 51172, 91, 
    51221, 137, 51224, 51223, 126, 51343, 
    51342, 51341, 51340, 47, 105, 50989, 
    31, 51366, 51367, 51368, 51369, 46, 
    51370, 51371, 51372, 51373, 51452, 
    51453, 88, 51395, 51396, 51397, 51555, 
    51556, 51496
  )

Query time 0.00073

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "70.11"
    },
    "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": 123,
      "rows_produced_per_join": 123,
      "filtered": "100.00",
      "index_condition": "(`test_uchur_k`.`cscart_warehouses_sum_products_amount`.`product_id` in (21567,51083,22715,51082,51085,51081,51096,51097,51098,51100,51099,22716,51123,51122,51121,92,49,51129,51128,51127,51126,51125,48,51176,51174,51173,51172,91,51221,137,51224,51223,126,51343,51342,51341,51340,47,105,50989,31,51366,51367,51368,51369,46,51370,51371,51372,51373,51452,51453,88,51395,51396,51397,51555,51556,51496))",
      "cost_info": {
        "read_cost": "57.81",
        "eval_cost": "12.30",
        "prefix_cost": "70.11",
        "data_read_per_join": "1K"
      },
      "used_columns": [
        "product_id",
        "amount"
      ]
    }
  }
}

Result

product_id amount
31 3
31 3
46 16
46 16
47 5
47 5
48 1
48 1
49 1
49 1
88 18
88 18
91 1
91 1
92 1
92 1
105 25
105 25
126 108
126 108
137 1
137 1
22715 2
22715 2
22716 5
22716 5
50989 13
50989 13
51081 8
51081 8
51082 8
51082 8
51083 3
51083 3
51085 1
51085 1
51096 8
51096 8
51097 8
51097 8
51098 5
51098 5
51099 2
51099 2
51100 2
51100 2
51121 2
51121 2
51122 1
51122 1
51123 2
51123 2
51125 5
51125 5
51126 5
51126 5
51127 3
51127 3
51128 2
51128 2
51129 2
51129 2
51172 3
51172 3
51173 3
51173 3
51174 1
51174 1
51176 1
51176 1
51221 1
51221 1
51223 1
51223 1
51224 1
51224 1
51340 2
51340 2
51341 7
51341 7
51342 3
51342 3
51343 2
51343 2
51366 4
51366 4
51367 4
51367 4
51368 3
51368 3
51369 2
51369 2
51370 18
51370 18
51371 25
51371 25
51372 15
51372 15
51373 13
51373 13
51395 22
51395 22
51396 11
51396 11
51397 9
51397 9
51452 8
51452 8
51453 10
51453 10
51496 30
51496 30
51555 10
51555 10
51556 9
51556 9