added the group external_id scoped field in the search criteria

This was a really small change to the SQL statement for the search criteria to accommodate for "group external_id search".