diff --git a/ag/clan/c_ranglist.php b/ag/clan/c_ranglist.php
index 9c543f9..a80667f 100644
--- a/ag/clan/c_ranglist.php
+++ b/ag/clan/c_ranglist.php
@@ -28,13 +28,13 @@ if ($wahl == 'geld') {
$wahl_y= 'Niederlagen';
$wahl_z = 'Elo';
} else {
- $wahl = 'siege';
+ $wahl = 'elo';
$wahl_x= 'Siege';
$wahl_y= 'Niederlagen';
$wahl_z = 'Elo';
}
-$sql = 'SELECT i.siege, i.leader, i.niederlagen, i.geld, i.clanname, i.id, u.nickname, (Select count(*) from user u1 where clan = i.id) as member, (Select 10 - count(*) from user u2 where clan = i.id and ((i.leader is null || i.leader != u2.id) and (i.co_leader is null ||i.co_leader != u2.id))) as freeslots, (select sum(spende) as summe from user_clan where clanid = i.id) as summe, elo FROM clan i LEFT JOIN user u ON(i.leader=u.id) ORDER BY i.'.$wahl.' DESC LIMIT 50';
+$sql = 'SELECT i.level, i.siege, i.leader, i.niederlagen, i.geld, i.clanname, i.id, u.nickname, (Select count(*) from user u1 where clan = i.id) as member, (Select 10 - count(*) from user u2 where clan = i.id and ((i.leader is null || i.leader != u2.id) and (i.co_leader is null ||i.co_leader != u2.id))) as freeslots, (select sum(spende) as summe from user_clan where clanid = i.id) as summe, elo FROM clan i LEFT JOIN user u ON(i.leader=u.id) ORDER BY i.'.$wahl.' DESC LIMIT 50';
//echo $sql . '
';
$char_s = mysql_query($sql);
?>
@@ -71,6 +71,7 @@ $char_s = mysql_query($sql);