MySQL said: 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 'AND `active` = 1 ORDER BY `sort`' at line 1, query was SELECT id, parent_id, name_pl, intro, file_pl, g FROM `sklep_categories` WHERE `parent_id` = AND `active` = 1 ORDER BY `sort`
#0  mysql_query_wrapper(SELECT id, parent_id, name_pl, intro, file_pl, g FROM `sklep_categories` WHERE `parent_id` =  AND `active` = 1 ORDER BY `sort`) called at [/home/users/fun-pol/public_html/panel/m/5/api/category.class.php:816]
#1  category::getAllLeafs(, Array ()) called at [/home/users/fun-pol/public_html/php_inc/controlers/sklep_kategoria.php:350]
#2  require_once(/home/users/fun-pol/public_html/php_inc/controlers/sklep_kategoria.php) called at [/home/users/fun-pol/public_html/php_inc/cms.php:289]
#3  include(/home/users/fun-pol/public_html/php_inc/cms.php) called at [/home/users/fun-pol/public_html/index.php:2]