Fix EZP-23835: pgsql requires columns in groupby