title: android.database.sqlite.SQLiteException: near "where": syntax error (code 1):
body: <p>I am getting<code>android.database.sqlite.SQLiteException: near "where": syntax error (code 1):</code> exception in the below code..Where i am going wrong?</p>
  
  <pre><code>String selectQuery = "SELECT  * FROM " + TABLE_VIDEO + " order by " + KEY_TIMESTAMP + " ASC "+"where " + KEY_TYPE + "='trending'";
  </code></pre>