title: How can use Codeigniter my_model class for udate with multiple where condetion?
body: <p>Iam used codeigniter my_model class for update my table datas.</p>
  
  <p>Actulay i need the query is </p>
  
  <pre><code>`UPDATE `pay_project` SET `awarded` = '129' WHERE `pay_id` = 1 and `status` ='y'
  </code></pre>
  
  <p>For this purpose am tried the codeignter my_model function update</p>
  
  <pre><code>$this-&gt;pay_project_model-&gt;update_by(array('pay_id'=&gt;1,'status'=&gt;'y'),$updateJob);
  </code></pre>
  
  <p>But the code is not working, if am trying the update() instead of update_by() at that time its showing like this </p>
  
  <pre><code>`UPDATE `pay_project` SET `awarded` = '129' WHERE 'id'=array()
  </code></pre>
  
  <p>Please help me to solve this ? Also am trying with update_many(), same is not working.. </p>
  
  <p>The model using is 
  <a href="https://github.com/jamierumbelow/codeigniter-base-model" rel="nofollow">https://github.com/jamierumbelow/codeigniter-base-model</a></p>