JDempster wrote:
> 
> Not 100% sure but I think you'll need
> 
> $select->from($ct, array('max_id' => new Zend_Db_Expr('MAX(place_id)') ))
> 

Actually, neither change is necessary.  Zend_Db_Select recognizes the
pattern of parentheses, and assumes it should be a Zend_Db_Expr.  It also
recognizes the pattern of "expr as alias" and assumes it should use the
latter word as an alias as if you had given it as an assoc array key.

Regards,
Bill Karwin
-- 
View this message in context: 
http://www.nabble.com/Zend_Db_Table-I-have-problems-reading-columns%27-alliases-tp15779311s16154p15780877.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to