SELECT t.* , a.* FROM cdb_threads t,cdb_attachments a WHERE t.tid = a.tid AND a.isimage =1 AND t.fid =18 GROUP BY t.tid ORDER BY t.dateline DESC LIMIT 0 , 30
我使用了,出现如下提示:
SQL: SELECT t.* , a.* FROM [Table]threads t,[Table]attachments a WHERE t.tid = a.tid AND a.isimage =1 AND t.fid =102,134,139,153,154,155,149,150,151 GROUP BY t.tid ORDER BY t.dateline DESC LIMIT 0,4
Error: 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 '134,139,153,154,155,149,150,151 GROUP BY t.tid ORDER BY t.dateline DESC LIMIT 0,' at line 1
Errno.: 1064