Unknown column 'date' in 'order clause':select * from sykes_jobs where isstaging = 0 and ( city like '%Trois-Rivières, Quebec, CA%' or address like '%Trois-Rivières, Quebec, CA%' or state like '%Trois-Rivières, Quebec, CA%' or title like '%Trois-Rivières, Quebec, CA%' or location like '%Trois-Rivières, Quebec, CA%' ) order by case when workplace = 'W@H' then 1 else 0 end, -date, rand_col desc limit 0, 50