select * from newcht_gallery where g_status='1' and gc_id in () order by g_sort asc,g_modifydate desc
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 ') order by g_sort asc,g_modifydate desc' at line 1