* MM-21946 Ensure deleted groups are not returned from the groups API * MM-21946 Only append to query at the end * MM-21946 Add DeleteAt check to the top of the GetGroups function and clean up the formatting a bit * MM-21946 Move the From statement into the next block