Fixed query syntax error.