title: Requested unknown parameter '1' from the data source for row 0 in DataTables
body: <p>When I try to retrieve data from my database to the table, I get this error:</p>
  
  <pre><code>DataTables warning (table id = 'student_table'): Requested unknown 
  parameter '1' from the data source for row 0
  </code></pre>
  
  <p>Below is the javascript that I used</p>
  
  <pre><code>&lt;script type="text/javascript" charset="utf-8"&gt;
  $(document).ready(function() {
      $('#student_table').dataTable( {
          "bProcessing": true,
          "bServerSide": true,
          "sServerMethod": "POST",
          "sAjaxSource": "&lt;?php echo base_url()?&gt;index.php/data/all"
      } );            
  } );
  &lt;/script&gt;
  </code></pre>
  
  <p>The JSON data retrieved:</p>
  
  <pre><code>{"sEcho":0,"iTotalRecords":3,
  "iTotalDisplayRecords":3,
  "aaData":[["85","t1","1D"],["74","test475","4A"],
  ["777","maiz","5"]],"sColumns":"id,name,class"}
  </code></pre>
  
  <p>Below is my table:</p>
  
  <pre><code>&lt;table class="datatable tables" id="student_table"&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;ID&lt;/th&gt;
              &lt;th&gt;Name&lt;/th&gt;
              &lt;th&gt;Class&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td class="dataTables_empty"&gt;Loading data from server&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
  &lt;/table&gt; 
  </code></pre>
  
  <p>PHP code (ignited datatables)</p>
  
  <pre><code>$this-&gt;load-&gt;library('datatables');
  
  $this-&gt;datatables-&gt;select('admission,name,class');
  $this-&gt;datatables-&gt;from('students');
  echo $this-&gt;datatables-&gt;generate();
  </code></pre>
  
  <p>I'm using codeigniter and DataTables.</p>
  
  <p>Why am I getting that error and how to retrieve the data to the table?</p>