title: Input array is longer than the number of columns in this table
body: <p>I've recently started to use SQLite and began to integrate it into a C# project I'm working on.</p>
  
  <p>However, randomly my project will throw the exception:</p>
  
  <blockquote>
    <p>Input array is longer than the number of columns in this table</p>
  </blockquote>
  
  <p>I'm having a hard time trying the trace the problem because it seems to be thrown on a random basis.</p>
  
  <pre><code>DataTable table = new DataTable();
  
  //exception is thrown here
  table = Global.db.ExecuteQuery("SELECT * FROM vm_manager"); 
  </code></pre>
  
  <p>Some of the data that gets returned from this query is as follows:</p>
  
  <p><a href="http://i.stack.imgur.com/9rlLN.png" rel="nofollow">http://i.stack.imgur.com/9rlLN.png</a></p>
  
  <p>If anyone has any advice, I'd be grateful.</p>
  
  <p><strong>EDIT:</strong>  I'm unable to show the execute query function as it resides inside a dll from the following sql lite wrapper <a href="http://www.codeproject.com/KB/database/cs_sqlitewrapper.aspx" rel="nofollow">http://www.codeproject.com/KB/database/cs_sqlitewrapper.aspx</a></p>
  
  <p><strong>EDIT 2</strong> Problem stems from the new record array function inside this particular sql lite wrapper. </p>