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