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