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 (1,2,5,6,7,8,9,10,12,14,17,20,22,26,27,30,32,42,...' at line 5 in /var/www/vhosts/frontwins.fr/httpdocs/Photos/include/dblayer/functions_mysqli.inc.php:132
Stack trace:
#0 /var/www/vhosts/frontwins.fr/httpdocs/Photos/include/dblayer/functions_mysqli.inc.php(132): mysqli->query('\nSELECT DISTINC...')
#1 /var/www/vhosts/frontwins.fr/httpdocs/Photos/include/dblayer/functions_mysqli.inc.php(888): pwg_query('\nSELECT DISTINC...')
#2 /var/www/vhosts/frontwins.fr/httpdocs/Photos/include/functions.inc.php(1640): query2array('\nSELECT DISTINC...', NULL, 'id')
#3 /var/www/vhosts/frontwins.fr/httpdocs/Photos/include/functions_search.inc.php(457): array_from_query('\nSELECT DISTINC...', 'id')
#4 /var/www/vhosts/frontwins.fr/httpdocs/Photos/include/functions_search.inc.php(1696): get_regular_search_results(Array, '')
#5 /var/www/vhosts/frontwins.fr/httpdocs/Photos/include/section_init.inc.php(364): get_search_results('psk-20240509-YQ...', NULL)
#6 /var/www/vhosts/frontwins.fr/httpdocs/Photos/index.php(12): include('/var/www/vhosts...')
#7 {main}
thrown in /var/www/vhosts/frontwins.fr/httpdocs/Photos/include/dblayer/functions_mysqli.inc.php on line 132