title: Example of a Multi Condition Delete with Zend framework
body: <p>Can someone give me an example of how I would delete a row in mysql with Zend framework when I have two conditions?</p>
  
  <p>i.e: (trying to do this)</p>
  
  <pre><code>"DELETE FROM messages WHERE message_id = 1 AND user_id = 2"
  </code></pre>
  
  <p>My code (that is failing miserably looks like this)</p>
  
  <pre><code>// is this our message?
  $condition = array(
                     'message_id = ' =&gt; $messageId,
                     'profile_id = ' =&gt; $userId
  );
  
  $n = $db-&gt;delete('messages', $condition);
  </code></pre>