title: Android SQLiteMisuseException when calling database.rawQuery
body: <p>I use a SQLite database in an Android application and sometimes get an SQLiteMisuseException when calling database.rawQuery(String sql, String[] selectionArgs).
  This is pretty odd because this Exception appears ramdomly and I realy don't know why.</p>
  
  <p>There is more informations about the Exception:</p>
  
  <pre><code>android.database.sqlite.SQLiteMisuseException: library routine called out of sequence: , while compiling: SELECT PromoGuid, PromoViewCount FROM TablePromoView
  at android.database.sqlite.SQLiteCompiledSql.native_compile(Native Method)
  at android.database.sqlite.SQLiteCompiledSql.compile(SQLiteCompiledSql.java:92)
  at android.database.sqlite.SQLiteCompiledSql.&lt;init&gt;(SQLiteCompiledSql.java:65)
  at android.database.sqlite.SQLiteProgram.&lt;init&gt;(SQLiteProgram.java:83)
  at android.database.sqlite.SQLiteQuery.&lt;init&gt;(SQLiteQuery.java:49)
  at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:42)
  at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1356)
  at android.database.sqlite.SQLiteDatabase.rawQuery(SQLiteDatabase.java:1324)
  at com.my.application....
  </code></pre>
  
  <p>Does somebody had this error? Can you help me to solve it?</p>
  
  <p>Thanks in advance,</p>
  
  <p>PS: Sorry for my poor english, I'm from Belgium</p>