Fatal error: Uncaught exception 'Exception' with message 'SafeMySQL: Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'img.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by. Full query: [SELECT `c`.`id`, `c`.`caption`, `c`.`cid`, `c`.`cost`, `ci`.`img_name`, `cc`.`firm`, `cc`.`year`
FROM `catalog` as `c`
LEFT JOIN (SELECT * FROM (SELECT * FROM `catalog_imgs` ORDER BY `sort`) as `img` GROUP BY `img`.`aid`) as `ci` ON `ci`.`aid`=`c`.`id`
LEFT JOIN `catalog_custom` as `cc` ON `c`.`id`=`cc`.`aid`
WHERE `c`.`special`=1 AND `c`.`cid` = 169 && `c`.`visible`=1 ORDER BY RAND()]' in /home/japanexp/public_html/utilities/safemysql.class.php:645
Stack trace:
#0 /home/japanexp/public_html/utilities/safemysql.class.php(467): SafeMySQL->error('Expression #1 o...')
#1 /home/japanexp/public_html/utilities/safemysql.class.php(117): SafeMySQL->rawQuery('SELECT `c`.`id`...')
#2 /home/japanexp/public_html/kernel/user_modul in /home/japanexp/public_html/utilities/safemysql.class.php on line 645