(PDB-9) Improve report query syntax error handling

Return better error messages when the user queries with bad operators or attributes