fix query for mariadb https://mariadb.com/kb/en/mariadb/group-by-trick-has-been-optimized-away/
fix query for mariadb
https://mariadb.com/kb/en/mariadb/group-by-trick-has-been-optimized-away/

p01/pouet2.0,UIKit0/pouet2.0,p01/pouet2.0,p01/pouet2.0,UIKit0/pouet2.0,UIKit0/pouet2.0