Query Run
SET @revStart = (SELECT MIN(rev_id) FROM revision ... 10 months ago