diff --git a/search/SearchContext.php b/search/SearchContext.php index 06a11bcce..e8fb86ff7 100644 --- a/search/SearchContext.php +++ b/search/SearchContext.php @@ -105,16 +105,12 @@ class SearchContext extends Object { public function getQuery($searchParams, $sort = false, $limit = false, $existingQuery = null) { $model = singleton($this->modelClass); - $fields = $this->applyBaseTableFields($model); - if($existingQuery) { $query = $existingQuery; } else { $query = $model->buildSQL(); } - $query->select = array_merge($query->select,$fields); - $SQL_limit = Convert::raw2sql($limit); $query->limit($SQL_limit);