Query Run
SET @rev = (SELECT MIN(rev_id) FROM revision WHERE... 3 years ago
SELECT user_name, user_editcount FROM user JOIN user_groups ON ug_user =... 3 years ago