Grouping WHERE clauses with Zend_Db_Table_Abstract
In order to achieve this, you have to construct the grouped clause within a single call to the where method. If both values of conditions are the same, you can do this: $select->where(‘client_email = ? OR client_email_alt = ?’, $client_email) If there are multiple placeholders within the string, the DB adapter’s quoteInto method will replace … Read more