private function _executeAndReturnFirst($builder,$vals)
    {
        $cls  = $this->_cls;
        $stmt = $cls::executePrepared($builder, $this->_vals);
        $data = $stmt->fetch();
        return $data ? $data[0] : 0;
    }
private function _executeAndReturnFirst($builder,$vals)
    {
        $cls  = $this->_cls;
        $stmt = $cls::executePrepared($builder, $this->_vals);
        $data = $stmt->fetch();
        return $data ? $data[0] : 0;
    }
private function _executeAndReturnFirst ( $ builder , $ vals ) { $ cls = $ this -> _cls ; $ stmt = $ cls :: executePrepared ( $ builder , $ this -> _vals ) ; $ data = $ stmt -> fetch ( ) ; return $ data ? $ data [ 0 ] : 0 ; }
Return the first value

@param mixed $builder builder
@param mixed $vals    values to use

@return mixed average
Return the first value