下面是我的sql调用语句:
SELECT t.*,a.* FROM cdb_threads t INNER JOIN cdb_attachments a ON t.tid=a.tid WHERE t.fid in (4,6,18,5,38) and t.attachment=1 and t.digest=3 and a.isimage=1 group by t.tid ORDER BY t.dateline DESC
<p><a href="$value[url]" target="_blank">$value[subject]</a></p></li>
<!--{/loop}-->
---------------------------------------------------------------------------------------------------------------------------
SQL语句:
SELECT t.*,a.* FROM cdb_threads t INNER JOIN cdb_attachments a ON t.tid=a.tid WHERE t.fid
in (11) AND t.typeid in (27) AND t.attachment=1 group by t.tid ORDER BY t.dateline DESC