Unknown column 'client' in 'where clause'