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