SELECT 
  product_id, 
  amount 
FROM 
  cscart_warehouses_sum_products_amount 
WHERE 
  1 
  AND product_id IN (
    51194, 51193, 51192, 51191, 51190, 51189, 
    19, 111, 51212, 144, 51215, 51214, 51213, 
    51444, 51445, 51446, 51447, 51272, 
    51271, 51270, 51269, 51268, 51267, 
    51266, 145, 9, 59, 60, 13, 51346, 118, 
    51347, 85, 61, 15, 95
  )

Query time 0.00062

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "40.06"
    },
    "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": 69,
      "rows_produced_per_join": 69,
      "filtered": "100.00",
      "index_condition": "(`test_uchur_k`.`cscart_warehouses_sum_products_amount`.`product_id` in (51194,51193,51192,51191,51190,51189,19,111,51212,144,51215,51214,51213,51444,51445,51446,51447,51272,51271,51270,51269,51268,51267,51266,145,9,59,60,13,51346,118,51347,85,61,15,95))",
      "cost_info": {
        "read_cost": "33.16",
        "eval_cost": "6.90",
        "prefix_cost": "40.06",
        "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
59 14
59 14
60 29
60 29
61 12
61 12
85 70
85 70
95 13
95 13
111 1
111 1
118 20
118 20
144 4
144 4
145 4
145 4
51189 3
51189 3
51190 6
51190 6
51191 6
51191 6
51192 6
51192 6
51193 3
51193 3
51194 2
51194 2
51212 1
51212 1
51213 5
51213 5
51214 3
51214 3
51215 3
51215 3
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