Fatal error: Uncaught mysqli_sql_exception: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX check the manual that corresponds to your MariaDB server version for the right syntax to use near '))
AND (category_id NOT IN (769,712,738,737,736,735,734,238,339,709,782,780...' at line 5 in /srv/www/albumy.agh.edu.pl/include/dblayer/functions_mysqli.inc.php:132
Stack trace:
#0 /srv/www/albumy.agh.edu.pl/include/dblayer/functions_mysqli.inc.php(132): mysqli->query()
#1 /srv/www/albumy.agh.edu.pl/include/dblayer/functions_mysqli.inc.php(888): pwg_query()
#2 /srv/www/albumy.agh.edu.pl/include/functions.inc.php(1640): query2array()
#3 /srv/www/albumy.agh.edu.pl/include/functions_search.inc.php(457): array_from_query()
#4 /srv/www/albumy.agh.edu.pl/include/functions_search.inc.php(1696): get_regular_search_results()
#5 /srv/www/albumy.agh.edu.pl/include/section_init.inc.php(364): get_search_results()
#6 /srv/www/albumy.agh.edu.pl/index.php(12): include('...')
#7 {main}
thrown in /srv/www/albumy.agh.edu.pl/include/dblayer/functions_mysqli.inc.php on line 132