Fixed bug in the slection of specific groups from subjects. The problem was in the formation of the query