I have a method that deletes a row form a database using the sql adapter provided the the zend framework.
class Table extends Zend_Db_Table_Abstract {
...
$where = $this->getAdapter()->quoteInto(
'ModID=? AND URL=?',
array((int)$mid, $url->toString())
);
$this->delete($where);
The issue is that this code gives the error:
Zend_Db_Statement_Exception: SQLSTATE[21000]: Cardinality violation: 1241 Operand should contain 1 column(s)
Similar code that specifies only one column in the where clause works fine.
Is there an alternative method to delete rows based on the values of multiple columns?