public function getResults($sstr = '')
 {
     $db = new DbDatabase();
     $this->setNoImages();
     $this->searchString = $sstr;
     $this->doSearch($sstr, $this->searchFields, $this->all, $this->questionTypes);
     if (!$this->success) {
         return array();
     }
     if ($this->random) {
         $this->mysqlRes = $db->getSphinxSearchRes($this->ids);
         $this->makeRandomResults();
     } elseif ($this->index == $this->index_questions) {
         $this->mysqlRes = $db->getSphinxSearchRes($this->ids);
         $this->makeResults();
     } elseif ($this->index == $this->index_unsorted) {
         $this->makeUnsortedResults();
     } else {
         $this->mysqlRes = $db->getTournamentsByIdsRes($this->ids);
         $this->makeTournamentsResults();
     }
     if (!$this->random && !$this->noPager) {
         $this->setPager();
     }
     return $this->results;
 }