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