Added method to find message about invalid query