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