select  id,title,body,user,isgood,isdel from 帖子表 where
id in (select titleid from 收藏表 where user='收藏用户') 
and isdel<>'1' order by id学习,不知道可不可以,你试试,权且做抛砖引玉吧。