SELECT 
  product_id, 
  amount 
FROM 
  cscart_warehouses_destination_products_amount 
WHERE 
  product_id IN (
    51497, 51498, 51496, 105, 126, 115, 11, 
    81, 56, 135, 82, 116, 117, 106, 17, 57, 
    122, 58, 5, 22, 18, 27, 121, 119, 141, 
    23, 4, 142, 120, 62, 108, 107
  ) 
  AND destination_id = 116 
  AND storefront_id = 1

Query time 0.00047

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 (51497,51498,51496,105,126,115,11,81,56,135,82,116,117,106,17,57,122,58,5,22,18,27,121,119,141,23,4,142,120,62,108,107)))",
      "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
4 15
5 13
11 100
17 32
18 34
22 8
23 19
27 4
56 103
57 35
58 35
62 20
81 31
105 25
106 22
107 17
108 10
115 7
116 3
117 13
119 27
120 25
121 22
122 30
126 108
135 6
141 11
142 12
51496 30
51497 30
51498 30