postgresql must appear in the group by clause or be used in an aggregate function
By Felicia Koss at Jan 26 2021