SELECT 
  product_id, 
  amount 
FROM 
  cscart_warehouses_sum_products_amount 
WHERE 
  1 
  AND product_id IN (
    21567, 51083, 22715, 51082, 51085, 51081, 
    51088, 51087, 22713, 51086, 51089, 
    51090, 51092, 51093, 22714, 51091, 
    51095, 51096, 51097, 51098, 51100, 
    51099, 22716, 51103, 22712, 51105, 
    51102, 51101, 51123, 51122, 51121, 
    92, 49, 51129, 51128, 51127, 51126, 
    51125, 48, 51155, 51154, 51153, 51152, 
    21, 51158, 51157, 51156, 53, 51160, 
    51159, 51176, 51174, 51173, 51172, 
    91, 105, 50989, 46, 51370, 51371, 51372, 
    51373, 51452, 51453, 51496
  )

Query time 0.00129

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "73.86"
    },
    "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": 128,
      "rows_produced_per_join": 128,
      "filtered": "100.00",
      "index_condition": "(`test_uchur_k`.`cscart_warehouses_sum_products_amount`.`product_id` in (21567,51083,22715,51082,51085,51081,51088,51087,22713,51086,51089,51090,51092,51093,22714,51091,51095,51096,51097,51098,51100,51099,22716,51103,22712,51105,51102,51101,51123,51122,51121,92,49,51129,51128,51127,51126,51125,48,51155,51154,51153,51152,21,51158,51157,51156,53,51160,51159,51176,51174,51173,51172,91,105,50989,46,51370,51371,51372,51373,51452,51453,51496))",
      "cost_info": {
        "read_cost": "61.06",
        "eval_cost": "12.80",
        "prefix_cost": "73.86",
        "data_read_per_join": "2K"
      },
      "used_columns": [
        "product_id",
        "amount"
      ]
    }
  }
}

Result

product_id amount
21 2
21 2
46 16
46 16
48 1
48 1
49 1
49 1
53 5
53 5
91 1
91 1
92 1
92 1
105 25
105 25
22712 5
22712 5
22713 4
22713 4
22714 4
22714 4
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
51086 7
51086 7
51087 7
51087 7
51088 4
51088 4
51089 2
51089 2
51090 1
51090 1
51091 7
51091 7
51092 3
51092 3
51093 6
51093 6
51095 1
51095 1
51096 8
51096 8
51097 8
51097 8
51098 5
51098 5
51099 2
51099 2
51100 2
51100 2
51101 8
51101 8
51102 6
51102 6
51103 5
51103 5
51105 2
51105 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
51152 2
51152 2
51153 2
51153 2
51154 3
51154 3
51155 1
51155 1
51156 8
51156 8
51157 6
51157 6
51158 6
51158 6
51159 4
51159 4
51160 5
51160 5
51172 3
51172 3
51173 3
51173 3
51174 1
51174 1
51176 1
51176 1
51370 18
51370 18
51371 25
51371 25
51372 15
51372 15
51373 13
51373 13
51452 8
51452 8
51453 10
51453 10
51496 30
51496 30