This query is not working
SELECT CAST(o.total as SIGNED INTEGER) as yakk
FROM `order` o
WHERE yakk = '51' ORDER BY `o`.`order_id` DESC limit 0, 50
it says yakk column is uknown while if I remove where clause it works and shows the column