public function fetchColumn()
    {
        $spec = $this->getResult();

        $data = $spec->fetch_row();
        if( is_array($data) ) {
            $data = current($data);
        }

        $this->free();
        return $data;
    }
public function fetchColumn()
    {
        $spec = $this->getResult();

        $data = $spec->fetch_row();
        if( is_array($data) ) {
            $data = current($data);
        }

        $this->free();
        return $data;
    }
public function fetchColumn ( ) { $ spec = $ this -> getResult ( ) ; $ data = $ spec -> fetch_row ( ) ; if ( is_array ( $ data ) ) { $ data = current ( $ data ) ; } $ this -> free ( ) ; return $ data ; }
Returns a single value from the first result row.

@return string|integer|float|null
Returns a single value from the first result row .