Array
(
[0] => SELECT id,tid,title FROM 9g_news where gid = and tid=1 and flag=1 ORDER BY id DESC LIMIT 0, 500
)
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 tid=1 and flag=1 ORDER BY id DESC LIMIT 0, 500' at line 1