SELECT *, amount AS pure_amount FROM cscart_reward_points WHERE object_id = 285 AND object_type = 'P' AND company_id = 0 AND amount > 0 AND usergroup_id IN(0, 1) ORDER BY amount_type ASC, amount ASC LIMIT 1
{ "query_block": { "select_id": 1, "table": { "message": "Impossible WHERE noticed after reading const tables" } } }