first syntax error on query 6