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 '8,5,6,9,12,11,1,7)' at line 11064SELECT id, name, IF(pathname != '', pathname, id) as pathname FROM `CA_store_blog_categories` WHERE id IN(,8,5,6,9,12,11,1,7)