1064 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 (k.is_authorized = 1 OR k.customers_id = 0)' at line 1in:[select count(k.id_komentare) as total FROM max_komentare k WHERE k.products_model01 IN () and (k.is_authorized = 1 OR k.customers_id = 0)]