Error querying database. Cause: java.sql.SQLSyntaxErrorException: Unknown column ‘xxx’ in ‘where clause’