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 ec_products.topcategory=) AND ec_products.quantity2<>'0' and ec_products.vis' at line 1