SELECT 
  product_id, 
  amount 
FROM 
  cscart_warehouses_sum_products_amount 
WHERE 
  1 
  AND product_id IN (
    204, 202, 197, 196, 195, 192, 189, 187, 
    184, 181, 177, 155, 154, 151, 107, 106, 
    105, 104, 103, 102, 101, 100, 82, 71, 
    51, 10, 9
  )

Query time 0.00030

JSON explain

{
  "query_block": {
    "select_id": 1,
    "message": "Impossible WHERE noticed after reading const tables"
  }
}