 [FIX] Avoid fatal error with MySQL 5.7 where only_full_group_by mode is on by default to avoid invalid queries. Using max() as a workaround since all values for a field will be the same.
 [FIX] Avoid fatal error with MySQL 5.7 where only_full_group_by mode is on by default to avoid invalid queries. Using max() as a workaround since all values for a field will be the same.

git-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@57100 b456876b-0849-0410-b77d-98878d47e9d5

tikiorg/tiki,tikiorg/tiki,oregional/tiki,oregional/tiki,oregional/tiki,oregional/tiki,tikiorg/tiki,tikiorg/tiki