update news set nStatus='0' where nAutoOff='1' and CURDATE()>nEndDate