public function query(SphinxQL $query) { SphinxQL::forge($this->getConnection()); return $query->execute(); if ($result === false) { throw new \RuntimeException($this->connection->error); } return $result; }