Error Number: 1064
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 b.id_user=c.username order by tgl DESC' at line 1
SELECT b.id as id,b.lokasi as lokasi,b.p_akhir as akhir,b.tgl as tgl,c.username as user,b.gambar_utama as gambar,b.judul_ina,b.isi_ina FROM tb_agenda AS b,tb_users as c WHERE b.state=1 and b.id= and b.id_user=c.username order by tgl DESC
Filename: modules/publik/models/Model_publik.php
Line Number: 50