Hata Kodu:1064 Hata: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 ED=10 limit 1) order by galeri.ID ASC LIMIT 2' at line 1 Sorgu:SELECT CONCAT('data/galeri/',adi) res,ID FROM galeri WHERE onay=1 and kid = (SELECT ID FROM gkat WHERE kid= and ED=10 limit 1) order by galeri.ID ASC LIMIT 2 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 ED=10 limit 1) order by galeri.ID ASC LIMIT 2' at line 1