select distinctrow t.subject,t.author,f.name
from cdb_threads as t,cdb_forums as f
where f.fid in (1,5,8,10) && t.fid = f.fid

解决方案 »

  1.   

    哥们的SQL也不是很熟,
    帮你顶!
      

  2.   

    select f.name,t.subject,t.author
    from cdb_threads as t,cdb_forums as f
    where f.fid in (1,5,8,10) and t.fid = f.fid
    order by t.dateline desc 
    limit 10
      

  3.   

    我测试就没问题,同样的Discuz!
      

  4.   

    select f.name,t.subject,t.author from cdb_threads as t,cdb_forums as f where f.fid in (1,5,8,10) and t.fid = f.fid
    order by t.dateline desc 
    limit 10