title: Getting CodeIgniter Active Record's current SQL code
body: <p>for example, i want to convert this;</p>
  
  <pre><code>$this-&gt;db-&gt;get('table');
  </code></pre>
  
  <p>to this;</p>
  
  <pre><code>'SELECT * FROM table'
  </code></pre>
  
  <p>is there any function for this? i searched on the user guide of CI but didnt find any solution.</p>