duplicate #127. That`s not Zend error, just need to use new Zend_Db_Expr() around...
Patch for MySQL and mostly for PgSQL: