title: SQLite database Error for Select query in android
body: <p>I am passing string to the below code and it gives error :</p>
  
  <pre><code>Error: 08-24 12:57:55.583: E/AndroidRuntime(11640): android.database.sqlite.SQLiteException:    near "RAMDEV": syntax error: , while compiling: SELECT chnno FROM EPG WHERE title = BABA RAMDEV KA YOGA
  </code></pre>
  
  <p>My code is here:</p>
  
  <pre><code>public String SearchChnNo(String title){
  
      String selectQuery = "SELECT " + chn_no + " FROM " + EPG + " WHERE " + pgm_title + " = " + title ; //error
  
      SQLiteDatabase db = this.getReadableDatabase();
      Cursor cursor = db.rawQuery(selectQuery, null);
      String chnno = cursor.getString(1);
      return chnno;
  
  }
  </code></pre>