You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND Godina= AND Mjesec=' at line 7
SELECT * FROM tblcasopis WHERE VrstaCasID IN ( SELECT IDVrstaCas FROM tblvrstacas WHERE PrilogCasopisa= ) AND Godina= AND Mjesec=