SELECT 
  product_id, 
  amount 
FROM 
  cscart_warehouses_destination_products_amount 
WHERE 
  product_id IN (
    18516, 51007, 51004, 51005, 51010, 51008, 
    51012, 51013, 51011, 51015, 51006, 
    51021, 51016, 51024, 51017, 51019, 
    51018, 51022, 51014, 51045, 51422, 
    51025, 51440, 51424, 51029, 51442, 
    51429, 51060, 51436, 51430, 51433, 
    51027, 51063, 51020, 51067, 51423, 
    51431, 51435, 51028, 51031, 51062, 
    51042, 51441, 51432, 51434, 51030, 
    51032, 51033, 51425, 51026, 51035, 
    51059, 51069, 51070, 51038, 51066, 
    51023, 51041, 51056, 51040, 51050, 
    51065, 51039, 51052
  ) 
  AND destination_id = 116 
  AND storefront_id = 1

Query time 0.00088

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "44.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": 64,
      "rows_produced_per_join": 64,
      "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 (18516,51007,51004,51005,51010,51008,51012,51013,51011,51015,51006,51021,51016,51024,51017,51019,51018,51022,51014,51045,51422,51025,51440,51424,51029,51442,51429,51060,51436,51430,51433,51027,51063,51020,51067,51423,51431,51435,51028,51031,51062,51042,51441,51432,51434,51030,51032,51033,51425,51026,51035,51059,51069,51070,51038,51066,51023,51041,51056,51040,51050,51065,51039,51052)))",
      "cost_info": {
        "read_cost": "38.41",
        "eval_cost": "6.40",
        "prefix_cost": "44.81",
        "data_read_per_join": "1024"
      },
      "used_columns": [
        "destination_id",
        "storefront_id",
        "product_id",
        "amount"
      ]
    }
  }
}

Result

product_id amount
18516 1
51004 2
51005 2
51006 2
51007 5
51008 5
51010 1
51011 1
51012 1
51013 1
51014 1
51015 1
51016 2
51017 2
51018 2
51019 4
51020 5
51021 4
51022 4
51023 5
51024 4
51025 3
51026 5
51027 2
51028 3
51029 1
51030 1
51031 2
51032 2
51033 1
51035 1
51038 1
51039 1
51040 2
51041 5
51042 5
51045 5
51050 5
51052 2
51056 2
51059 20
51060 20
51062 4
51063 5
51065 5
51066 5
51067 5
51069 2
51070 2
51422 8
51423 4
51424 10
51425 5
51429 1
51430 2
51431 19
51432 1
51433 1
51434 1
51435 1
51436 1
51440 1
51441 1
51442 1