Fix count for posgresql

SELECT count(*) AS count_1
FROM "user"
WHERE "user".local = True
ORDER BY "user".login;

doesn't work in prosgresql,
The ORDER BY is useless but postres says that a GROUP BY
clause is missing!