SELECT 
  product_id, 
  amount 
FROM 
  cscart_warehouses_destination_products_amount 
WHERE 
  product_id IN (
    4, 
    7, 
    8, 
    9, 
    10, 
    12, 
    13, 
    15, 
    16, 
    18, 
    19, 
    20, 
    22, 
    23, 
    27, 
    32, 
    33, 
    34, 
    35, 
    36, 
    52, 
    54, 
    59, 
    60, 
    61, 
    62, 
    84, 
    85, 
    86, 
    89, 
    93, 
    94, 
    95, 
    96, 
    107, 
    108, 
    109, 
    110, 
    111, 
    114, 
    118, 
    119, 
    120, 
    121, 
    123, 
    128, 
    130, 
    131, 
    141, 
    142, 
    144, 
    146, 
    147, 
    51106, 
    51107, 
    51108, 
    51109, 
    51110, 
    51111, 
    51112, 
    51113, 
    51114, 
    51115, 
    51116, 
    51117, 
    51118, 
    51161, 
    51162, 
    51163, 
    51164, 
    51165, 
    51177, 
    51178, 
    51179, 
    51180, 
    51181, 
    51182, 
    51183, 
    51184, 
    51185, 
    51186, 
    51187, 
    51188, 
    51189, 
    51190, 
    51191, 
    51192, 
    51193, 
    51194, 
    51195, 
    51196, 
    51197, 
    51198, 
    51199, 
    51200, 
    51201, 
    51210, 
    51211, 
    51212, 
    51213, 
    51214, 
    51215, 
    51216, 
    51217, 
    51218, 
    51219, 
    51220, 
    51225, 
    51226, 
    51227, 
    51228, 
    51229, 
    51230, 
    51231, 
    51232, 
    51233, 
    51234, 
    51235, 
    51236, 
    51237, 
    51238, 
    51239, 
    51240, 
    51241, 
    51242, 
    51243, 
    51244, 
    51245, 
    51246, 
    51247, 
    51248, 
    51249, 
    51250, 
    51251, 
    51252, 
    51253, 
    51254, 
    51255, 
    51256, 
    51257, 
    51258, 
    51259, 
    51260, 
    51261, 
    51262, 
    51263, 
    51264, 
    51265, 
    51273, 
    51274, 
    51275, 
    51276, 
    51277, 
    51278, 
    51279, 
    51280, 
    51281, 
    51282, 
    51283, 
    51284, 
    51285, 
    51286, 
    51287, 
    51288, 
    51289, 
    51290, 
    51291, 
    51292, 
    51293, 
    51294, 
    51310, 
    51311, 
    51312, 
    51313, 
    51314, 
    51344, 
    51345, 
    51346, 
    51347, 
    51348, 
    51350, 
    51351, 
    51352, 
    51390, 
    51391, 
    51392, 
    51393, 
    51394, 
    51444, 
    51445, 
    51446, 
    51447, 
    51448, 
    51449
  ) 
  AND destination_id = 116 
  AND storefront_id = 1

Query time 0.00128

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "135.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": 194,
      "rows_produced_per_join": 194,
      "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 (4,7,8,9,10,12,13,15,16,18,19,20,22,23,27,32,33,34,35,36,52,54,59,60,61,62,84,85,86,89,93,94,95,96,107,108,109,110,111,114,118,119,120,121,123,128,130,131,141,142,144,146,147,51106,51107,51108,51109,51110,51111,51112,51113,51114,51115,51116,51117,51118,51161,51162,51163,51164,51165,51177,51178,51179,51180,51181,51182,51183,51184,51185,51186,51187,51188,51189,51190,51191,51192,51193,51194,51195,51196,51197,51198,51199,51200,51201,51210,51211,51212,51213,51214,51215,51216,51217,51218,51219,51220,51225,51226,51227,51228,51229,51230,51231,51232,51233,51234,51235,51236,51237,51238,51239,51240,51241,51242,51243,51244,51245,51246,51247,51248,51249,51250,51251,51252,51253,51254,51255,51256,51257,51258,51259,51260,51261,51262,51263,51264,51265,51273,51274,51275,51276,51277,51278,51279,51280,51281,51282,51283,51284,51285,51286,51287,51288,51289,51290,51291,51292,51293,51294,51310,51311,51312,51313,51314,51344,51345,51346,51347,51348,51350,51351,51352,51390,51391,51392,51393,51394,51444,51445,51446,51447,51448,51449)))",
      "cost_info": {
        "read_cost": "116.41",
        "eval_cost": "19.40",
        "prefix_cost": "135.81",
        "data_read_per_join": "3K"
      },
      "used_columns": [
        "destination_id",
        "storefront_id",
        "product_id",
        "amount"
      ]
    }
  }
}

Result

product_id amount
4 15
7 2
8 3
9 36
10 38
12 3
13 20
15 31
16 23
18 34
19 3
20 2
22 8
23 19
27 4
32 1
33 2
34 3
35 3
36 3
52 2
54 3
59 14
60 29
61 12
62 20
84 18
85 70
86 27
89 8
93 1
94 1
95 13
96 4
107 17
108 10
109 3
110 3
111 1
114 25
118 20
119 27
120 25
121 22
123 21
128 3
130 2
131 2
141 11
142 12
144 4
146 4
147 2
51106 1
51107 3
51108 3
51109 2
51110 2
51111 1
51112 1
51113 2
51114 2
51115 3
51116 2
51117 2
51118 1
51161 2
51162 3
51163 1
51164 1
51165 1
51177 1
51178 1
51179 1
51180 1
51181 0
51182 1
51183 1
51184 3
51185 5
51186 4
51187 2
51188 2
51189 3
51190 6
51191 6
51192 6
51193 3
51194 2
51195 2
51196 4
51197 4
51198 3
51199 3
51200 3
51201 1
51210 0
51211 0
51212 1
51213 5
51214 3
51215 3
51216 4
51217 6
51218 4
51219 3
51220 3
51225 2
51226 5
51227 5
51228 2
51229 2
51230 1
51231 2
51232 5
51233 6
51234 3
51235 2
51236 3
51237 1
51238 1
51239 3
51240 2
51241 2
51242 2
51243 1
51244 6
51245 6
51246 2
51247 2
51248 2
51249 3
51250 2
51251 3
51252 1
51253 2
51254 2
51255 1
51256 2
51257 0
51258 0
51259 4
51260 8
51261 5
51262 2
51263 4
51264 3
51265 3
51273 4
51274 5
51275 2
51276 2
51277 1
51278 4
51279 5
51280 3
51281 2
51282 1
51283 4
51284 6
51285 3
51286 1
51287 3
51288 3
51289 3
51290 1
51291 1
51292 0
51293 1
51294 1
51310 3
51311 4
51312 4
51313 5
51314 3
51344 15
51345 20
51346 10
51347 46
51348 10
51350 20
51351 6
51352 2
51390 8
51391 6
51392 7
51393 3
51394 1
51444 5
51445 1
51446 3
51447 2
51448 6
51449 2