GROUP BY `schema_id`, rootSubGroup_id HAVINGcount(*)=".getVehicleWithinCommonRootSubgroupInSpecific($vehiclesIds) $where = new Where();
$having= new Having('count(*) = '.<
SELECT referral_code, count(*) FROM users GROUP BY users.referral_code HAVINGcount(*) > 1Error: error: select "referral_code", count(*) as "cnt" from "users" group by "users"."referral_code&q