SELECT 
  product_id, 
  amount 
FROM 
  cscart_warehouses_destination_products_amount 
WHERE 
  product_id IN (
    51297, 51296, 139, 51300, 51299, 51298, 
    51304, 51303, 51302, 51301, 138, 51443, 
    51309, 51308, 51307, 51306, 51305, 
    129, 54, 51313, 51312, 51314, 51311, 
    51310, 51361, 30, 51362, 51363, 51364, 
    51365, 31, 51366, 51367, 51368, 51369, 
    46, 51370, 51371, 51372, 51373, 51452, 
    51453, 42, 51376, 51377, 51378, 51379, 
    51380, 88, 51395, 51396, 51397, 51555, 
    51556
  ) 
  AND destination_id = 116 
  AND storefront_id = 1

Query time 0.00071

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "37.81"
    },
    "table": {
      "table_name": "cscart_warehouses_destination_products_amount",
      "access_type": "range",
      "possible_keys": [
        "PRIMARY",
        "idx_storefront_id"
      ],
      "key": "PRIMARY",
      "used_key_parts": [
        "product_id",
        "destination_id",
        "storefront_id"
      ],
      "key_length": "9",
      "rows_examined_per_scan": 54,
      "rows_produced_per_join": 54,
      "filtered": "100.00",
      "index_condition": "((`test_uchur_k`.`cscart_warehouses_destination_products_amount`.`storefront_id` = 1) and (`test_uchur_k`.`cscart_warehouses_destination_products_amount`.`destination_id` = 116) and (`test_uchur_k`.`cscart_warehouses_destination_products_amount`.`product_id` in (51297,51296,139,51300,51299,51298,51304,51303,51302,51301,138,51443,51309,51308,51307,51306,51305,129,54,51313,51312,51314,51311,51310,51361,30,51362,51363,51364,51365,31,51366,51367,51368,51369,46,51370,51371,51372,51373,51452,51453,42,51376,51377,51378,51379,51380,88,51395,51396,51397,51555,51556)))",
      "cost_info": {
        "read_cost": "32.41",
        "eval_cost": "5.40",
        "prefix_cost": "37.81",
        "data_read_per_join": "864"
      },
      "used_columns": [
        "destination_id",
        "storefront_id",
        "product_id",
        "amount"
      ]
    }
  }
}

Result

product_id amount
30 4
31 3
42 5
46 6
54 3
88 18
129 3
138 9
139 7
51296 3
51297 3
51298 1
51299 3
51300 3
51301 8
51302 12
51303 6
51304 7
51305 3
51306 3
51307 4
51308 3
51309 2
51310 3
51311 4
51312 4
51313 5
51314 3
51361 4
51362 6
51363 6
51364 3
51365 1
51366 4
51367 4
51368 3
51369 2
51370 3
51371 10
51372 5
51373 13
51376 3
51377 2
51378 4
51379 5
51380 5
51395 22
51396 11
51397 9
51443 4
51452 8
51453 10
51555 10
51556 9