Copy to ClipboardLiehuo.Net Codes引用的内容:[www.CUOxin.com]
{dede:sql sql="SELECT cdb_attachments.aid, cdb_attachments.attachment,cdb_threads.tid, cdb_threads.subject FROM cdb_attachments LEFT JOIN cdb_threads ON cdb_threads.tid = cdb_attachments.tid WHERE cdb_attachments.readperm='0' AND cdb_threads.displayorder>='0' AND (right(cdb_attachments.filename,3)='jpg' or right(cdb_attachments.filename,3)='gif') GROUP BY tid LIMIT 0,4"}