public function fetchOne($sql, $bind = array())
    {
        $stmt = $this->query($sql, $bind);
        $result = $stmt->fetchColumn(0);
        return $result;
    }
public function fetchOne($sql, $bind = array())
    {
        $stmt = $this->query($sql, $bind);
        $result = $stmt->fetchColumn(0);
        return $result;
    }
public function fetchOne ( $ sql , $ bind = array ( ) ) { $ stmt = $ this -> query ( $ sql , $ bind ) ; $ result = $ stmt -> fetchColumn ( 0 ) ; return $ result ; }
Fetches the first column of the first row of the SQL result.

@param string|Zend_Db_Select $sql An SQL SELECT statement.
@param mixed $bind Data to bind into SELECT placeholders.
@return string
Fetches the first column of the first row of the SQL result .