Unknown column 'freelance' in 'where clause'