Query fail: SELECT ume.ime FROM umetniki ume, relations rel WHERE ume.`idumet` IN (1624,1937) AND ume.idumet = rel.idumet AND rel.idrastav = () ORDER BY `ume`.`ime` ASC

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 ') ORDER BY `ume`.`ime` ASC' at line 1