open theme.php and find
Code:
$numrows = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_banner WHERE type='0' AND active='1'"));
replace with
Code:
$sql = "SELECT * FROM ".$prefix."_banner WHERE type='0' AND active='1'";
if( !$query = $db->sql_query($sql) )
{
die('Could not obtain banner information', '', __LINE__, __FILE__, $sql);
}
$numrows = $db->sql_numrows($query);
And then report back