SELECT 
  product_id, 
  amount 
FROM 
  cscart_warehouses_destination_products_amount 
WHERE 
  product_id IN (
    51514, 51538, 51539, 51468, 51476, 51491, 
    51513, 51474, 51503, 51520, 51522, 
    51541, 51462, 51502, 51499, 51465, 
    51509, 51515, 51466, 51485, 51518, 
    51550, 51519, 51524, 51528, 51508, 
    51527, 51543, 51482, 51504, 51542, 
    51512
  ) 
  AND destination_id = 116 
  AND storefront_id = 1

Query time 0.00064

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "22.41"
    },
    "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": 32,
      "rows_produced_per_join": 32,
      "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 (51514,51538,51539,51468,51476,51491,51513,51474,51503,51520,51522,51541,51462,51502,51499,51465,51509,51515,51466,51485,51518,51550,51519,51524,51528,51508,51527,51543,51482,51504,51542,51512)))",
      "cost_info": {
        "read_cost": "19.21",
        "eval_cost": "3.20",
        "prefix_cost": "22.41",
        "data_read_per_join": "512"
      },
      "used_columns": [
        "destination_id",
        "storefront_id",
        "product_id",
        "amount"
      ]
    }
  }
}

Result

product_id amount
51462 4
51465 4
51466 4
51468 4
51474 4
51476 1
51482 2
51485 1
51491 1
51499 5
51502 3
51503 5
51504 3
51508 4
51509 4
51512 5
51513 5
51514 3
51515 3
51518 7
51519 3
51520 2
51522 3
51524 1
51527 5
51528 5
51538 5
51539 5
51541 3
51542 3
51543 3
51550 4