SELECT d.* FROM 202200013_article d WHERE d.tb=7 and d.lang = 'tw' and (d.inuse = '1' or (d.inuse ='2' and d.sdate <= '2022-08-09' and d.edate >='2022-08-09')) order by d.seq desc