I have in a dbtable
field 1 field 2 1 2 2 3 2 3 2 2 1 1 2 2
I want to get
field 1 field 2 1 2 2 3 2 2 1 1
Tried
$select = $this->_dbTable->select()->from($this->_dbTable,array("DISTINCT(field_1) as field_1","DISTINCT(field_2) as field_2")); $select = $this->_dbTable->select()->from($this->_dbTable,array("DISTINCT(field_1, field_2) as field_1, field_2"));
PS: Why this Zend Framework's so hard?!