updated the query for getting ungraded patients when there is a group selected and still no errors.  Hopefully I did this right the first time.  Won't know until I get the grading responding properly.