DELETE FROM `log` WHERE `date`<= '2016-06-01 00:00:00' AND `page`='404';