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 ') and cate=0 AND parent in () and ( name LIKE '%con%' or detail LIKE '%con...' at line 1