title: CodeIgniter active record, Add IF statement in ->select() function
body: <p>I have this query:</p>
  
  <pre><code>$this-&gt;db-&gt;select("
      IF(predicts.predict_owner = votes.vote_user_id , IF(judges.judge_did_accept = 1 , True , False) , 'NotExists' )" , 'user_judgement');
  </code></pre>
  
  <p>I get syntax error on </p>
  
  <pre><code>  `'NotExists'` )
  </code></pre>
  
  <p>If I run the query directly inside the database, it works fine...<br>
  Is there any way to prevent CI to add the sign `  automatically? </p>
  
  <p>Thanks   </p>