Index: trunk/core/kernel/db/dblist.php =================================================================== diff -u -r2348 -r2428 --- trunk/core/kernel/db/dblist.php (.../dblist.php) (revision 2348) +++ trunk/core/kernel/db/dblist.php (.../dblist.php) (revision 2428) @@ -252,8 +252,16 @@ { $all_sql = $this->GetSelectSQL(true,false); $sql = $this->getCountSQL($all_sql); - $this->RecordsCount = (int)$this->Conn->GetOne($sql); - + + if( $this->GetGroupClause() ) + { + $this->RecordsCount = count( $this->Conn->GetCol($sql) ); + } + else + { + $this->RecordsCount = (int)$this->Conn->GetOne($sql); + } + $system_sql = $this->GetSelectSQL(true,true); if ($system_sql == $all_sql) { //no need to query the same again $this->NoFilterCount = $this->RecordsCount;