PostgreSQL deve aparecer no grupo por cláusula ou ser usado em uma função agregada
Try using "DISTINCT" instead of "GROUP BY"
GutoTrosla
Try using "DISTINCT" instead of "GROUP BY"