original_string: public function fetchAssoc($sql, $bind = array())
      {
          $stmt = $this->query($sql, $bind);
          $data = array();
          while ($row = $stmt->fetch(Zend_Db::FETCH_ASSOC)) {
              $tmp = array_values(array_slice($row, 0, 1));
              $data[$tmp[0]] = $row;
          }
          return $data;
      }
code: public function fetchAssoc($sql, $bind = array())
      {
          $stmt = $this->query($sql, $bind);
          $data = array();
          while ($row = $stmt->fetch(Zend_Db::FETCH_ASSOC)) {
              $tmp = array_values(array_slice($row, 0, 1));
              $data[$tmp[0]] = $row;
          }
          return $data;
      }
code_tokens: public function fetchAssoc ( $ sql , $ bind = array ( ) ) { $ stmt = $ this -> query ( $ sql , $ bind ) ; $ data = array ( ) ; while ( $ row = $ stmt -> fetch ( Zend_Db :: FETCH_ASSOC ) ) { $ tmp = array_values ( array_slice ( $ row , 0 , 1 ) ) ; $ data [ $ tmp [ 0 ] ] = $ row ; } return $ data ; }
docstring: Fetches all SQL result rows as an associative array.
  
  The first column is the key, the entire row array is the
  value.  You should construct the query to be sure that
  the first column contains unique values, or else
  rows with duplicate values in the first column will
  overwrite previous data.
  
  @param string|Zend_Db_Select $sql An SQL SELECT statement.
  @param mixed $bind Data to bind into SELECT placeholders.
  @return array
docstring_tokens: Fetches all SQL result rows as an associative array .