0

我有下一个代码:

    $parent_priority = $data['priority'];
    $where = $this->getAdapter()->quoteInto('priority >= ?', $parent_priority);
    $columns = array ('id',
                      'title',
                      'enabled',
                      'description',
                      'pv',
                      'gv',
                      'mps', 'priority',
                      );
    $select_data = $this->select()->from($this->_name, $columns);
    $ranks = $this->fetchAll($select_data)->toArray();

但是 Zend 在行中创建了一个错误“Column not found: 1054 Unknown column '0' in 'field list'”$ranks = $this->fetchAll($select_data)->toArray();

我该如何解决这个问题?

4

1 回答 1

-3

只需在“优先级”之后从您的数组中抑制最后一个“,”。

于 2010-08-24T14:24:34.860 回答