SELECT d.* FROM 201500095_eforms d WHERE d.tb='1' and d.lang = 'en' and (d.inuse = '1' or (d.inuse ='2' and d.sdate <= '2017-05-01' and d.edate >='2017-05-01')) order by d.seq desc