WYJĄTEK
MySQL.class.php, linia: 82
SELECT
SQL_CALC_FOUND_ROWS `e`.`id` AS totalRows,
`e`.`id`, `e`.`id_parent`, `e`.`locked`
, `ml`.`name`,
IF (`m`.`id_element` IN (, ), 1, 0) AS selected
FROM `a_Element` AS e
INNER JOIN `a_CategoryModule` AS m ON (`m`.`id_element`=`e`.`id`)
INNER JOIN `a_CategoryModule_lang` AS ml ON (`ml`.`id_element`=`e`.`id` AND `ml`.`id_lang`='297')
LEFT JOIN `a_Position` AS p ON (`p`.`id_element`=`e`.`id` AND `p`.`id_parent` IS NULL)
WHERE `e`.`module` = 'CategoryModule'
AND `m`.`active` = '1' AND `m`.`deleted_at` IS NULL AND `e`.`id_parent` IS NULL
GROUP BY `e`.`id`
ORDER BY position asc
LIMIT 0, 20
#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 ' ), 1, 0) AS selected
FROM `a_Element` AS e
INNER JOIN `a_CategoryModu' at line 5
#0 /home/wipalplo/domains/wipal.pl/public_html/class/MySQL.class.php:123
MySQL->query()
#1 /home/wipalplo/domains/wipal.pl/public_html/class/SiteList.class.php:273
MySQL->fetchQueryResults()
#2 /home/wipalplo/domains/wipal.pl/public_html/modules/CategoryModule/CategoryModule.class.php:76
SiteList->elementsList()
#3 /home/wipalplo/domains/wipal.pl/public_html/modules/CategoryModule/CategoryModule.class.php:51
CategoryModule->getCategoriesTree()
#4 /home/wipalplo/domains/wipal.pl/public_html/index.php:206
CategoryModule->runController()