title: SQLiteException: Unrecognized token when reading from database
body: <p>I've created an SQLite database inside application, populated it and now I'm trying to read from it. The app keeps crashing and this is the logcat I receive:</p>
  
  <pre><code>12-30 05:53:18.008: E/AndroidRuntime(6205): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.testparsing/com.example.testparsing.Urnik}: android.database.sqlite.SQLiteException: unrecognized token: "4c" (code 1): , while compiling: SELECT predmet FROM predmeti WHERE dan=PONEDELJEK and ura=2 and oddelek=4c
  </code></pre>
  
  <p>Function for reading from database:</p>
  
  <pre><code>Cursor getSubject(String dan, int ura, String oddelek){
      String[] columnNames = new String[1];
      columnNames[0] = SQLiteHelper.PREDMET;
      String selection = SQLiteHelper.DAN+"="+dan+" and "+SQLiteHelper.URA+"="+ura+" and "+SQLiteHelper.ODDELEK+"="+oddelek;
      open();
      return db.query(
              SQLiteHelper.IME_TABELE, 
              columnNames, 
              selection, 
              null, null, null, null);
  }
  </code></pre>
  
  <p>How I'm trying to read:</p>
  
  <pre><code>TextView tw1p = (TextView) findViewById(R.id.tview1p);
  DatabaseHandler db = new DatabaseHandler(getApplicationContext());
  
  Cursor c = db.getSubject("PONEDELJEK", 2, "4c");
  String predmet = c.getString(c.getColumnIndex(SQLiteHelper.PREDMET));
  tw1p.setText(predmet);
  </code></pre>
  
  <p>A screenshot of table, just to prove that oddelek "4c" in fact does exist:
  <img src="https://i.stack.imgur.com/LRPMa.png" alt="enter image description here"></p>