Thread:Skin talk:Erudite/New Pages not working

I've installed the Erudite Skin in a couple of Wikis.

The New Pages setion of the footer is working in one but not the other. The configuration that works is:

Product 	Version MediaWiki 	1.19.2 PHP 	       5.3.15 (apache2handler) SQLite 	       3.7.7.1 with full-text search support

The configuration that isn't working is: MediaWiki 	1.19.2 PHP 	       5.2.17 (cgi-fcgi) MySQL 	       5.0.91-log

I turned on SQL debug ($wgDebugDumpSql = true;) and extracted the relevant SQL statement:

SELECT /* EruditeTemplate::newpages My IP */rc_title FROM `recentchanges` WHERE rc_type = '1' AND rc_namespace = '0' ORDER BY rc_timestamp DESC LIMIT 5

If I run this using phpmyadmin then it works correctly (returning 4 rows for a new Wiki). I added some trace statements to Erudite.skin.php and can see that the key SQL query in newpages also returns 4 rows (according to $res-numRows). However, the foreach loop below is executing zero times.

foreach($res->result as $i) { $name = str_replace('_', ' ', $i['rc_title']); $url = $this->getSkin->makeUrl($i['rc_title']); $pgs[] = array('name' => $name, 'url' => $url); }

As a result the New Pages section of the footer is blank.

I've reached the limit of my basic php skills now. Any suggestions what is wrong/what I can do to investigate further?

Thanks.