Array ( [run] => brza_pretraga [wct] => 230 [trazi] => pdv i privatne poliklinike ) Array ( [banstat] => 35f06833c90ecfb2dad81f54d [trazi] => pdv i privatne poliklinike ) Array ( [0] => pdv [1] => i [2] => privatne [3] => poliklinike ) SELECT * FROM tblpretrazivac WHERE CONCAT(pre_naslov,pre_tekst,pre_hashtag) LIKE '%pdv%' AND CONCAT(pre_naslov,pre_tekst,pre_hashtag) LIKE '%i%' AND CONCAT(pre_naslov,pre_tekst,pre_hashtag) LIKE '%privatne%' AND CONCAT(pre_naslov,pre_tekst,pre_hashtag) LIKE '%poliklinike%' ORDER BY pre_datum DESC,pre_sto,pre_id DESC 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 c.AutorID=a.IDAutor ORDER BY RedniBroj ASC' at line 4
SELECT * FROM tblautorcas c, tblautor a WHERE c.ClanakID= AND c.AutorID=a.IDAutor ORDER BY RedniBroj ASC