Removing a query from the moodle queries