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 U_pretplati=0 AND rasprodata=0 and Izdavac_originala=0 and Knjizara_cena<...' at line 1