Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'gibappeda.f.id_foto' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by in /var/www/html/include/data/DatabaseClass.php:65
Stack trace:
#0 /var/www/html/include/data/DatabaseClass.php(65): PDO->query('SELECT f.*, \n\t\t...')
#1 /var/www/html/modules/FrontFoto.php(78): DatabaseClass->get_num_rows('SELECT f.*, \n\t\t...')
#2 /var/www/html/modules/FrontFoto.php(36): FrontFoto->index()
#3 /var/www/html/modules/FrontClass.php(86): FrontFoto->init()
#4 /var/www/html/awal.php(56): FrontClass->init()
#5 /var/www/html/awal.php(62): cms->init()
#6 {main}
thrown in /var/www/html/include/data/DatabaseClass.php on line 65