initial query syntax error handling