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 ') or (category6= and category6 is not null and category6>0 ))) and domain='ma...' at line 1