bakit di ko makita?
ganito nalabas...
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 ') group by g.gallery_id order by m.media_id desc limit 0, 12' a
select * from p_media m, p_gallery g where m.gallery_id = g.gallery_id and g.deleted = '0' and (g.status = '1' and m.status = '1') and g.category = '' and g.gallery_id not in () group by g.gallery_id order by m.media_id desc limit 0, 12