Error: MySQL error #1064
MySQL says: 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 ') ORDER BY `priority`,`name`' at line 5
Query was: SELECT *, (SELECT COUNT(*) FROM goods WHERE `parent`=categories.`id` AND (`hidden` IS NULL OR `hidden`=0)) as cnt ,`cntgoods`,`merg` ,'' as H_path ,CONCAT(IF(`alias` IS NOT NULL AND `alias`<>'', CONCAT('/catalogue/',`alias`) , CONCAT('/catalogue/cat',`id`)) ,'/bensten') as path FROM categories WHERE `parent`=0 AND (`hidden` IS NULL OR `hidden`=0) AND `id` IN() ORDER BY `priority`,`name`