select d.* from 202000187_article d,202000187_article_cate c where c.id=d.cateid and c.tb=2 and c.lang = 'tw' and c.inuse='1' and d.tb='2' and d.lang = 'tw' and (d.inuse = '1' or (d.inuse ='2' and concat(d.sdate, ' ', ifnull(d.stime, '00:00:00')) <= '2024-05-29 06:08:27' and concat(d.edate, ' ', ifnull(d.etime, '23:59:59')) >='2024-05-29 06:08:27')) and d.cateid=133 order by d.seq desc