Warning: [mysql error 1064] You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'GROUP BY period' at line 4 SELECT DISTINCT(YEAR(date_available)) as period, COUNT(DISTINCT id) as nb_images FROM piwigo_images WHERE id IN ((28520,1990,1986,1980,29635,2330,1977,2318,1979,2001) AND date_available IS NOT NULL GROUP BY period; in /home/www/friedemanns.photos/include/dblayer/functions_mysqli.inc.php on line 878

Fatal error: Uncaught Error: Call to a member function fetch_assoc() on boolean in /home/www/friedemanns.photos/include/dblayer/functions_mysqli.inc.php:926 Stack trace: #0 /home/www/friedemanns.photos/include/calendar_base.class.php(258): query2array('\nSELECT DISTINC...', 'period', 'nb_images') #1 /home/www/friedemanns.photos/include/calendar_monthly.class.php(105): CalendarBase->build_nav_bar(0) #2 /home/www/friedemanns.photos/include/functions_calendar.inc.php(200): CalendarMonthly->generate_category_content() #3 /home/www/friedemanns.photos/include/section_init.inc.php(631): initialize_calendar() #4 /home/www/friedemanns.photos/index.php(12): include('/home/www/fried...') #5 {main} thrown in /home/www/friedemanns.photos/include/dblayer/functions_mysqli.inc.php on line 926