Query Run
SET @minus_7 = DATE_FORMAT(NOW() - INTERVAL 7 DAY, '%Y%m%d%H%i%s'); SET... 8 months ago