Query Run
SET @N = 750; SET @today = mid(replace(now(),"-",""),5,4); /* "0428"; --... 3 months ago
USE orwiki_p; SET @N = 750; SET @today = mid(replace(now(),"-",""),5,4);... 3 months ago