SELECT 
  product_id, 
  amount 
FROM 
  cscart_warehouses_sum_products_amount 
WHERE 
  1 
  AND product_id IN (
    51183, 20, 51188, 51187, 51186, 51185, 
    51184, 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, 51231, 51230, 
    51229, 51228, 51227, 51226, 51225, 
    109, 51272, 51271, 51270, 51269, 51268, 
    51267, 51266, 145, 9, 59, 13, 51346, 
    118, 84, 51347, 85, 61, 15, 95
  )

Query time 0.00119

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "65.16"
    },
    "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": 112,
      "rows_produced_per_join": 112,
      "filtered": "100.00",
      "index_condition": "(`test_uchur_k`.`cscart_warehouses_sum_products_amount`.`product_id` in (51183,20,51188,51187,51186,51185,51184,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,51231,51230,51229,51228,51227,51226,51225,109,51272,51271,51270,51269,51268,51267,51266,145,9,59,13,51346,118,84,51347,85,61,15,95))",
      "cost_info": {
        "read_cost": "53.96",
        "eval_cost": "11.20",
        "prefix_cost": "65.16",
        "data_read_per_join": "1K"
      },
      "used_columns": [
        "product_id",
        "amount"
      ]
    }
  }
}

Result

product_id amount
9 36
9 36
13 20
13 20
15 31
15 31
19 3
19 3
20 2
20 2
59 14
59 14
61 12
61 12
84 18
84 18
85 70
85 70
95 13
95 13
109 3
109 3
111 1
111 1
118 20
118 20
131 2
131 2
144 4
144 4
145 4
145 4
51183 1
51183 1
51184 3
51184 3
51185 5
51185 5
51186 4
51186 4
51187 2
51187 2
51188 2
51188 2
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
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
51346 10
51346 10
51347 46
51347 46
51444 5
51444 5
51445 1
51445 1
51446 3
51446 3
51447 2
51447 2