请问这样写对吗?读不出来哦?
SELECT t.*,a.*,p.* FROM discuz.cdb_threadsmod p,discuz.cdb_threads t INNER JOIN discuz.cdb_attachments a ON t.tid=a.tid WHERE p.tid=t.tid and p.status=0 and a.isimage=1 and t.attachment=1 and t.fid=5 group by t.tid ORDER BY t.dateline DESC
参考网上别人的
SELECT t.*,a.* FROM discuz.cdb_threads t INNER JOIN discuz.cdb_attachments a ON t.tid=a.tid WHERE and a.isimage=1 and t.attachment=1 group by t.tid ORDER BY t.dateline DESC
但是这样的会吧未经审核的帖子也读出来了,请问还有什么解决方法吗?