title: Codeigniter. How to return records where value of variable is more than field in database?
body: <p>I have the following codeigniter model function:</p>
  
  <pre><code>function get_successful($project_id, $amount_backed){
      $data = '';
  
      $this-&gt;db-&gt;where('id', $project_id); 
      $this-&gt;db-&gt;where($amount_backed &gt;= 'funding_goal'); //HELP HERE
      $this-&gt;db-&gt;where('published', '1'); 
  
  ......
  
      return $data;
  }
  </code></pre>
  
  <p>I need to only get records where the variable <code>$amount_backed</code> is higher or equal to the field <code>'funding_goal'</code>.</p>
  
  <p>How can this be done with codeigniters active record?</p>