1
0

fixed getUserCountFromLastVersion query

This commit is contained in:
Mike Schwörer 2018-02-12 21:36:54 +01:00
parent 2d0ed42e4b
commit 8bdfe06ddb
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF

View File

@ -11,7 +11,7 @@ class AlephNoteStatistics
public static function getUserCountFromLastVersion()
{
return Database::sql_query_num('SELECT COUNT(*) FROM an_statslog WHERE NoteCount>0 AND Version = (SELECT Version FROM an_statslog ORDER BY Version DESC LIMIT 1)');
return Database::sql_query_num('SELECT COUNT(*) FROM an_statslog WHERE NoteCount>0 GROUP BY Version ORDER BY INET_ATON(Version) DESC LIMIT 1');
}
public static function getActiveUserCount($days)