Unknown column 'john' in 'where clause'