diff --git a/html/_layouts/default.php b/html/_layouts/default.php
index 0a563d306bcf052c14aa992cb4c4641914fcd839..c5b65248b8f8102e3f2405ae5afb0babd133186d 100644
--- a/html/_layouts/default.php
+++ b/html/_layouts/default.php
@@ -225,7 +225,7 @@ if( !empty($csv) ){
 
               var td = document.createElement('td');
 
-              var st=parseInt(( new Date() - new Date(v.zeitstempel) ) / 1000 / 3600 / 24);
+              var st=parseInt(( new Date() - new Date(v.zeitstempl) ) / 1000 / 3600 / 24);
 
 
               $(td).text( st == 1 ? 'vor ' + st + ' Tag' : 'vor ' + st + ' Tagen' );
diff --git a/html/functions/db_methods.php b/html/functions/db_methods.php
index 19716fbb0d3a3d5b847fa93038300ec70abac603..c28d84194e3be2b46f72a9646820d04623c4fb67 100644
--- a/html/functions/db_methods.php
+++ b/html/functions/db_methods.php
@@ -286,31 +286,17 @@ function db_getLatestFromSpieler($days=34){
 
   $db=new db;
 
-  $sql = 'SELECT *, Statistik.zeitstempel AS zeitstempl FROM Spieler INNER JOIN Statistik ON Spieler.id = Statistik.SpielerID WHERE Statistik.zeitstempel > NOW()-'.$days.' GROUP BY SpielerID ORDER BY zeitstempl DESC';
-  $result = $db->query($sql);
-  echo $sql;
-  
-  $ROW=Array();
-  while( $row = $result->fetch_assoc() ){
-    $row['id']=bin2hex($row['id']);
-    $ROW[]=$row;
-  }
-
-  unset($db);
-  return $ROW;
-
-}
-function db_getLatest2FromSpieler($days=34){
-
-  $db=new db;
-
-  $sql = 'SELECT * FROM Spieler WHERE zeitstempel > NOW()-'.$days.' ORDER BY zeitstempel';
+  $sql = 'SELECT Spieler.*, Statistik.zeitstempel AS zeitstempl
+          FROM Spieler INNER JOIN Statistik ON Spieler.id = Statistik.SpielerID
+          WHERE Statistik.zeitstempel > NOW()-'.$days.'
+          GROUP BY Statistik.SpielerID
+          ORDER BY zeitstempl DESC';
   $result = $db->query($sql);
 
   $ROW=Array();
-
   while( $row = $result->fetch_assoc() ){
     $row['id']=bin2hex($row['id']);
+    $row['SpielerID']=bin2hex($row['SpielerID']);
     $ROW[]=$row;
   }