Fatal error: Uncaught mysqli_sql_exception: Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'collection.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by in /home/ecgtrade/public_html/open-same.php:222
Stack trace:
#0 /home/ecgtrade/public_html/open-same.php(222): mysqli->query('SELECT * FROM (...')
#1 {main}
thrown in /home/ecgtrade/public_html/open-same.php on line 222