Warning: [mysql error 1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'groups IS NULL OR groups REGEXP CONCAT("(^|,)",group_id,"(,|$)"))
AND level <=' at line 7
SELECT DISTINCT id, title, permalink
FROM piwigo_additionalpages
LEFT JOIN piwigo_user_group
ON user_id = 2
WHERE (lang IS NULL OR lang = "en_GB")
AND (users IS NULL OR users LIKE "%guest%")
AND (groups IS NULL OR groups REGEXP CONCAT("(^|,)",group_id,"(,|$)"))
AND level <= 0
AND pos >= 0
ORDER BY pos ASC
; in /home/marcf/www/include/dblayer/functions_mysqli.inc.php on line 856
Fatal error: Uncaught Error: Call to a member function fetch_assoc() on bool in /home/marcf/www/include/dblayer/functions_mysqli.inc.php:220
Stack trace:
#0 /home/marcf/www/plugins/AdditionalPages/main.inc.php(124): pwg_db_fetch_assoc(false)
#1 /home/marcf/www/include/functions_plugins.inc.php(264): ap_apply(Array)
#2 /home/marcf/www/include/block.class.php(181): trigger_notify('blockmanager_ap...', Array)
#3 /home/marcf/www/include/menubar.inc.php(342): BlockManager->apply('MENUBAR', 'menubar.tpl')
#4 /home/marcf/www/include/menubar.inc.php(15): initialize_menu()
#5 /home/marcf/www/index.php(103): include('/home/marcf/www...')
#6 {main}
thrown in /home/marcf/www/include/dblayer/functions_mysqli.inc.php on line 220