title: siaqodb query: ArgumentException: The field handle and the type handle are incompatible
body: <p>I am using the siaqodb plugin in Unity3D to manage my database game.</p>
  
  <p>The plugin uses the System.LINQ library and I am having an specific problem:</p>
  
  <p>The code:</p>
  
  <pre><code>var query = (from T t in siaqodb where t.Id == 1 select t);
  return query.ToList&lt;T&gt; ()[0];
  </code></pre>
  
  <p>Works good! That's OK! Great!</p>
  
  <p>But the code:</p>
  
  <pre><code>int a = 1;
  var query = (from T t in siaqodb where t.Id == a select t);
  return query.ToList&lt;T&gt; ()[0]
  </code></pre>
  
  <p>This code Throws the exception: 
  <strong><em>ArgumentException: The field handle and the type handle are incompatible.</em></strong></p>