Hello,
You are missing Zend db columns.
http://framework.zend.com/manual/2.1/en/modules/zend.db.sql.html#columns
Something like
$sql = new Sql($this->adapter);
$select = $sql ->select();
$select->from(array('bid_buy'),)
$select->columns(array('maxamount'=> new
Expression('max(bid_amount)')))
->where(array('id' => $id))
->order('id DESC');
Regards,
Chintan Patel
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/How-can-i-select-only-particular-field-from-a-table-tp4659343p4659379.html
Sent from the Zend Framework mailing list archive at Nabble.com.
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]