Fixes a fatal error in the getAll SQL in GroupAccess