SELECT 
  product_id, 
  amount 
FROM 
  cscart_warehouses_destination_products_amount 
WHERE 
  product_id IN (
    51318, 51317, 51316, 51315, 51, 51319, 
    51323, 51322, 51321, 51320, 50, 51324, 
    127, 51325, 51343, 51342, 51341, 51340, 
    47
  ) 
  AND destination_id = 116 
  AND storefront_id = 1

Query time 0.00041

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "13.31"
    },
    "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": 19,
      "rows_produced_per_join": 19,
      "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 (51318,51317,51316,51315,51,51319,51323,51322,51321,51320,50,51324,127,51325,51343,51342,51341,51340,47)))",
      "cost_info": {
        "read_cost": "11.41",
        "eval_cost": "1.90",
        "prefix_cost": "13.31",
        "data_read_per_join": "304"
      },
      "used_columns": [
        "destination_id",
        "storefront_id",
        "product_id",
        "amount"
      ]
    }
  }
}

Result

product_id amount
47 2
50 2
51 2
127 3
51315 0
51316 2
51317 1
51318 2
51319 2
51320 2
51321 2
51322 2
51323 2
51324 2
51325 1
51340 1
51341 1
51342 1
51343 1