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