public function fetchOne($sql, $bind = [], $fetchMode = \PDO::FETCH_ASSOC, $useMaster = false)
    {
        return ($rs = $this->fetchAll($sql, $bind, $fetchMode, $useMaster)) ? $rs[0] : false;
    }
public function fetchOne($sql, $bind = [], $fetchMode = \PDO::FETCH_ASSOC, $useMaster = false)
    {
        return ($rs = $this->fetchAll($sql, $bind, $fetchMode, $useMaster)) ? $rs[0] : false;
    }
public function fetchOne ( $ sql , $ bind = [ ] , $ fetchMode = \ PDO :: FETCH_ASSOC , $ useMaster = false ) { return ( $ rs = $ this -> fetchAll ( $ sql , $ bind , $ fetchMode , $ useMaster ) ) ? $ rs [ 0 ] : false ; }
Returns the first row in a SQL query result

@param string $sql
@param array  $bind
@param int    $fetchMode
@param bool   $useMaster

@return array|false
Returns the first row in a SQL query result