public function fetchPairs($sql, $bind = array())
    {
        $stmt = $this->query($sql, $bind);
        $data = array();
        while ($row = $stmt->fetch(Zend_Db::FETCH_NUM)) {
            $data[$row[0]] = $row[1];
        }
        return $data;
    }
public function fetchPairs($sql, $bind = array())
    {
        $stmt = $this->query($sql, $bind);
        $data = array();
        while ($row = $stmt->fetch(Zend_Db::FETCH_NUM)) {
            $data[$row[0]] = $row[1];
        }
        return $data;
    }
public function fetchPairs ( $ sql , $ bind = array ( ) ) { $ stmt = $ this -> query ( $ sql , $ bind ) ; $ data = array ( ) ; while ( $ row = $ stmt -> fetch ( Zend_Db :: FETCH_NUM ) ) { $ data [ $ row [ 0 ] ] = $ row [ 1 ] ; } return $ data ; }
Fetches all SQL result rows as an array of key-value pairs.

The first column is the key, the second column is the
value.

@param string|Zend_Db_Select $sql An SQL SELECT statement.
@param mixed $bind Data to bind into SELECT placeholders.
@return array
Fetches all SQL result rows as an array of key - value pairs .