code: public function query($sql, $return = false)
      {
          $query = $this->getDb()->query($sql, true);
          if ($return) {
              return $query;
          }
      }
docs: Executes a query and, optionally, returns the result
  
  @param string $sql
  @param bool $return
  @return array|void