Query Run
SET @rev = (SELECT MIN(rev_id) FROM revision WHERE... 11 months ago
SET @rev = (SELECT MIN(rev_id) FROM revision WHERE... 11 months ago