Thread:Project:Support desk/NUMBEROFARTICLES and NUMBEROFPAGES showing inflated numbers

Okay, so... I had a wiki that was overrun with spam. I temporarily deactivated the wiki, manually deleted all the spam from the database, and then later reactivated the wiki, upgraded to version 1.19.2, and put in place some anti-spam measures that I should have used in the first place. However, the NUMBEROFARTICLES and NUMBEROFPAGES magic words still seem to count the no longer extant spam pages. The Special:Statistics page correctly shows the number of articles (currently 324 content pages, 491 total pages), but the NUMBEROFARTICLES and NUMBEROFPAGES magic words show hugely inflated numbers (3,602 articles, 135,331 total pages!) I've run every maintenance script that seemed potentially relevant (rebuildall.php, initStats.php, updateSpecialPages.php, updateArticleCount.php (with and without the --update option)), but while, as I said, it's got the Special:Statistics page showing the correct numbers now, the magic words still aren't working correctly. Any ideas?

(Full details: Using MediaWiki version 1.19.2 (just upgraded from 1.15.0), PHP version 5.2.17, MySQL 5.0.96. The URL of the wiki is http://www.rpdia.net.  In case it matters, I do not, unfortunately, have shell access; I ran the maintenance scripts via the Maintenance extension.)