bouchard/thumbs_up — pull request #56 by SpOOnman (2012-09-20 07:54:46+00:00)
Title: Update SQL group by to include all columns.

I have improved SQL to make it more standard compilant. When you select columns they should all be in group by clause.

In your actual code it works on MySQL and PostgreSQL from 9.1 version. I tdoesn't work on previous PGSQL versions and probably other databases (SQLite?). This commit makes it work on PostgreSQL 8.4 as well.