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 'LIMIT 1' at line 4

SELECT c.id_parent
                        FROM `ps_cms_category` c
                        WHERE c.id_cms_category = 
                         LIMIT 1