issue #24850 - check group _and_ individual privs
replace dummy metasql with pg-style query parameterization
Merge pull request #1989 from gilmoskowitz/i24850_includeGroupPrivs

issue #24850 - check group _and_ individual privs