SELECT * FROM yewt_document WHERE isclass=1 AND mid=5 AND tid IN ('5') OR FIND_IN_SET('5',extid) ORDER BY addtime,pid DESC LIMIT 0,6