Fatal error: Uncaught mysqli_sql_exception: 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 '))
AND (category_id NOT IN (59,63,64,69,70,72,73,74,75,77,78,79,81,82,83,86...' at line 5 in /var/www/piwigo2/include/dblayer/functions_mysqli.inc.php:132
Stack trace:
#0 /var/www/piwigo2/include/dblayer/functions_mysqli.inc.php(132): mysqli->query()
#1 /var/www/piwigo2/include/dblayer/functions_mysqli.inc.php(888): pwg_query()
#2 /var/www/piwigo2/include/functions.inc.php(1640): query2array()
#3 /var/www/piwigo2/include/functions_search.inc.php(457): array_from_query()
#4 /var/www/piwigo2/include/functions_search.inc.php(1696): get_regular_search_results()
#5 /var/www/piwigo2/include/section_init.inc.php(364): get_search_results()
#6 /var/www/piwigo2/index.php(12): include('...')
#7 {main}
thrown in /var/www/piwigo2/include/dblayer/functions_mysqli.inc.php on line 132