fixed query error message