openside("Gera");
$result = dbquery("SELECT * FROM ".$db_prefix."ratings LEFT JOIN ".$db_prefix."custom_pages ON rating_item_id = page_id WHERE rating_type='C' ORDER BY rating_vote DESC LIMIT 0,5");
while (($data = mysql_fetch_assoc($result))
$nr++;
$nr=0;
$id = $data['page_title'];
$rating = $data['rating_vote'];
}
echo "$n - $id<br>";
closeside();