SELECT 
  product_id, 
  amount 
FROM 
  cscart_warehouses_sum_products_amount 
WHERE 
  1 
  AND product_id IN (
    51194, 51193, 51192, 51191, 51190, 51189, 
    19, 51201, 51200, 51199, 51198, 51197, 
    51196, 51195, 131, 111, 51212, 144, 
    51215, 51214, 51213, 51444, 51445, 
    51446, 51447, 51220, 51219, 51218, 
    51217, 51216, 146, 51448, 51449, 51231, 
    51230, 51229, 51228, 51227, 51226, 
    51225, 109, 51272, 51271, 51270, 51269, 
    51268, 51267, 51266, 145, 9, 59, 60, 
    14, 13, 127, 51325, 63, 50984, 51450, 
    51451, 51329, 51328, 51327, 50985, 
    51331, 51330, 50986, 51332, 51339, 
    51338, 51337, 51336, 50988, 113, 51346, 
    118, 84, 51347, 85, 6, 61, 51350, 123, 
    15, 95, 136, 50992, 51374, 51375, 42, 
    51376, 51377, 51378, 51379, 51380, 
    50993, 51381, 51382, 134
  )

Query time 0.00105

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "114.31"
    },
    "table": {
      "table_name": "cscart_warehouses_sum_products_amount",
      "access_type": "range",
      "possible_keys": [
        "PRIMARY"
      ],
      "key": "PRIMARY",
      "used_key_parts": [
        "product_id"
      ],
      "key_length": "3",
      "rows_examined_per_scan": 199,
      "rows_produced_per_join": 199,
      "filtered": "100.00",
      "index_condition": "(`test_uchur_k`.`cscart_warehouses_sum_products_amount`.`product_id` in (51194,51193,51192,51191,51190,51189,19,51201,51200,51199,51198,51197,51196,51195,131,111,51212,144,51215,51214,51213,51444,51445,51446,51447,51220,51219,51218,51217,51216,146,51448,51449,51231,51230,51229,51228,51227,51226,51225,109,51272,51271,51270,51269,51268,51267,51266,145,9,59,60,14,13,127,51325,63,50984,51450,51451,51329,51328,51327,50985,51331,51330,50986,51332,51339,51338,51337,51336,50988,113,51346,118,84,51347,85,6,61,51350,123,15,95,136,50992,51374,51375,42,51376,51377,51378,51379,51380,50993,51381,51382,134))",
      "cost_info": {
        "read_cost": "94.41",
        "eval_cost": "19.90",
        "prefix_cost": "114.31",
        "data_read_per_join": "3K"
      },
      "used_columns": [
        "product_id",
        "amount"
      ]
    }
  }
}

Result

product_id amount
6 29
6 29
9 36
9 36
13 20
13 20
14 29
14 29
15 31
15 31
19 3
19 3
42 5
42 5
59 14
59 14
60 29
60 29
61 12
61 12
63 5
63 5
84 18
84 18
85 70
85 70
95 13
95 13
109 3
109 3
111 1
111 1
113 37
113 37
118 20
118 20
123 21
123 21
127 3
127 3
131 2
131 2
134 2
134 2
136 13
136 13
144 4
144 4
145 4
145 4
146 4
146 4
50984 1
50984 1
50985 6
50985 6
50986 10
50986 10
50988 6
50988 6
50992 6
50992 6
50993 6
50993 6
51189 3
51189 3
51190 6
51190 6
51191 6
51191 6
51192 6
51192 6
51193 3
51193 3
51194 2
51194 2
51195 2
51195 2
51196 4
51196 4
51197 4
51197 4
51198 3
51198 3
51199 3
51199 3
51200 3
51200 3
51201 1
51201 1
51212 1
51212 1
51213 5
51213 5
51214 3
51214 3
51215 3
51215 3
51216 4
51216 4
51217 6
51217 6
51218 4
51218 4
51219 3
51219 3
51220 3
51220 3
51225 2
51225 2
51226 5
51226 5
51227 5
51227 5
51228 2
51228 2
51229 2
51229 2
51230 1
51230 1
51231 2
51231 2
51266 6
51266 6
51267 6
51267 6
51268 6
51268 6
51269 2
51269 2
51270 4
51270 4
51271 4
51271 4
51272 4
51272 4
51325 1
51325 1
51327 10
51327 10
51328 10
51328 10
51329 6
51329 6
51330 10
51330 10
51331 10
51331 10
51332 10
51332 10
51336 10
51336 10
51337 10
51337 10
51338 10
51338 10
51339 6
51339 6
51346 10
51346 10
51347 46
51347 46
51350 20
51350 20
51374 6
51374 6
51375 6
51375 6
51376 3
51376 3
51377 2
51377 2
51378 4
51378 4
51379 5
51379 5
51380 5
51380 5
51381 6
51381 6
51382 6
51382 6
51444 5
51444 5
51445 1
51445 1
51446 3
51446 3
51447 2
51447 2
51448 6
51448 6
51449 2
51449 2
51450 3
51450 3
51451 3
51451 3