title: update zend db with multiple where
body: <p>Is something wrong with my query when i am executing getting fatal error.</p>
  
  <pre><code>$select = $db-&gt;select()
      -&gt;from('test', '*')
      -&gt;where('user_id = ?', 1)
      -&gt;where('url is NULL');
  $Details = $db-&gt;fetchAll($select);
  
  foreach ($Details as $row1) {
      $PublicId = $row1['public_id'];
      $data = array('password' =&gt; $randomString , 'flag' =&gt; 1);
  
      $db-&gt;update("test", $data, 'public_id =' . $PublicId);
      $pass = $row1['password']; 
  }
  </code></pre>
  
  <p>Error is:</p>
  
  <blockquote>
    <p>Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'wdefabcghbcla45' in 'where clause'' in C:\xampp\php\PEAR\Zend\Db\Statement\Pdo.php:228 Stack trace: #0 C:\xampp\php\PEAR\Zend\Db\Statement\Pdo.php(228): PDOStatement->execute(Array) #1 C:\xampp\php\PEAR\Zend\Db\Statement.php(300): Zend_Db_Statement_Pdo->_execute(Array) #2 C:\xampp\php\PEAR\Zend\Db\Adapter\Abstract.php(479): Zend_Db_Statement->execute(Array) #3 C:\xampp\php\PEAR\Zend\Db\Adapter\Pdo\Abstract.php(238): Zend_Db_Adapter_Abstract->query('UPDATE <code>test</code> ...', Array) #4 C:\xampp\php\PEAR\Zend\Db\Adapter\Abstract.php(634): Zend_Db_Adapter_Pdo_Abstract->query('UPDATE <code>test</code> ...', Array) #5 D:\Zend Workspace\Test\testDelete.php(39): Zend_Db_Adapter_Abstract->update('test', Array, 'test_public_id...') #6 {main} Next exception 'Zend_Db_Statement_Exception' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'wdefabcghbcla45' in 'where clause'' in C:\xampp\php\PEAR\Zend\Db\Statement\ in C:\xampp\php\PEAR\Zend\Db\Statement\Pdo.php on line 234</p>
  </blockquote>