我有下一个代码:
$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'”(找不到列:1054行中的未知列“0”)。
$ranks = $this->fetchAll($select_data)->toArray();
我怎么解决这个问题?