fix error in query for group and client members due to addition of staff to query.