MSSQL Incompatibility with Organic Group Views Filter Handlers
I fixed it by changing Line 13 to:

-&gt;groupBy('r.name')
-&gt;groupBy('r.rid')
-&gt;groupBy('r.gid')
-&gt;groupBy('r.group_type')
-&gt;groupBy('r.group_bundle')