SELECT d.* FROM 201900131_article d WHERE d.tb=1 and d.lang = 'tw' and (d.inuse = '1' or (d.inuse ='2' and d.sdate <= '2021-08-05' and d.edate >='2021-08-05')) and (d.member_level is null or d.member_level ='' or (d.member_level='1' and d.member_level_vals like '%nologin%') ) order by d.seq desc