diff --git a/src/classes/logstreampdo.class.php b/src/classes/logstreampdo.class.php index bbacb43..121b1e0 100644 --- a/src/classes/logstreampdo.class.php +++ b/src/classes/logstreampdo.class.php @@ -1479,6 +1479,14 @@ public function ConsolidateDataByField($szConsFieldId, $nRecordLimit, $szSortFie $szLimitSqlAfter = ""; } + // Create SQL Where Clause! + if ( $this->_SQLwhereClause == "" ) + { + $res = $this->CreateSQLWhereClause(); + if ( $res != SUCCESS ) + return $res; + } + // Create SQL String now! $szSql = "SELECT " . $szLimitSqlBefore .