public function fetchOne($sql, $params = array()) {
    $result = $this->db()->fetchAssoc($sql, $params);

    if (!empty($result)) {
      $this->setRecord($result);

      return $this;
    }

    return FALSE;
  }
public function fetchOne($sql, $params = array()) {
    $result = $this->db()->fetchAssoc($sql, $params);

    if (!empty($result)) {
      $this->setRecord($result);

      return $this;
    }

    return FALSE;
  }
public function fetchOne ( $ sql , $ params = array ( ) ) { $ result = $ this -> db ( ) -> fetchAssoc ( $ sql , $ params ) ; if ( ! empty ( $ result ) ) { $ this -> setRecord ( $ result ) ; return $ this ; } return FALSE ; }
Fetchs one record with the given query.

If success sets the record in the current object and return $this.
If fails return false.

@param $sql
@param $params

@return The current instance with the record setted internally.
Fetchs one record with the given query .