Query Run
SET @then = DATE_FORMAT(SYSDATE() - INTERVAL 1 MONTH,... 2 years ago
SELECT * FROM revision JOIN page ON rev_page = page_id WHERE... 2 years ago
SELECT * FROM revision JOIN page ON rev_page = page_id WHERE... 2 years ago
SELECT * FROM revision JOIN page ON rev_page = page_id WHERE... 2 years ago