title: handeling querying an item with a single quote in it
body: <p>I get an error anytime I try to query a phrase that has a quote in it, for example <code>John's day</code>. How do I handle that?</p>
  
  <p>this is my query</p>
  
  <pre><code>Cursor c = db.query(EVENTS_TABLE, new String[] {ID,EVENT,DATE,REAL_START_TIME,REAL_END_TIME}
      ,EVENT + "='" +name+"'",null,null,null,null);
  </code></pre>
  
  <p>name would be <code>John's day</code></p>
  
  <p>Logcat</p>
  
  <pre><code>01-05 12:25:17.551: E/AndroidRuntime(17085): android.database.sqlite.SQLiteException: near "s": syntax error: , while compiling: SELECT _id, event, date, rstime, retime FROM Events_Table WHERE event='Martin Luther King, Jr's Day'
  01-05 12:25:17.551: E/AndroidRuntime(17085):    at android.database.sqlite.SQLiteCompiledSql.native_compile(Native Method)
  01-05 12:25:17.551: E/AndroidRuntime(17085):    at android.database.sqlite.SQLiteCompiledSql.&lt;init&gt;(SQLiteCompiledSql.java:64)
  01-05 12:25:17.551: E/AndroidRuntime(17085):    at android.database.sqlite.SQLiteProgram.compileSql(SQLiteProgram.java:143)
  01-05 12:25:17.551: E/AndroidRuntime(17085):    at android.database.sqlite.SQLiteProgram.compileAndbindAllArgs(SQLiteProgram.java:361)
  01-05 12:25:17.551: E/AndroidRuntime(17085):    at android.database.sqlite.SQLiteProgram.&lt;init&gt;(SQLiteProgram.java:127)
  01-05 12:25:17.551: E/AndroidRuntime(17085):    at android.database.sqlite.SQLiteProgram.&lt;init&gt;(SQLiteProgram.java:94)
  01-05 12:25:17.551: E/AndroidRuntime(17085):    at android.database.sqlite.SQLiteQuery.&lt;init&gt;(SQLiteQuery.java:53)
  01-05 12:25:17.551: E/AndroidRuntime(17085):    at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:47)
  01-05 12:25:17.551: E/AndroidRuntime(17085):    at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1564)
  01-05 12:25:17.551: E/AndroidRuntime(17085):    at android.database.sqlite.SQLiteDatabase.queryWithFactory(SQLiteDatabase.java:1449)
  01-05 12:25:17.551: E/AndroidRuntime(17085):    at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1405)
  01-05 12:25:17.551: E/AndroidRuntime(17085):    at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1485)
  01-05 12:25:17.551: E/AndroidRuntime(17085):    at com.app.notifyme.CalendarDB.getId(CalendarDB.java:243)
  01-05 12:25:17.551: E/AndroidRuntime(17085):    at com.app.notifyme.Calendar.getRow(Calendar.java:378)
  01-05 12:25:17.551: E/AndroidRuntime(17085):    at com.app.notifyme.Calendar$3.onItemLongClick(Calendar.java:85)
  01-05 12:25:17.551: E/AndroidRuntime(17085):    at android.widget.AbsListView.performLongPress(AbsListView.java:2580)
  01-05 12:25:17.551: E/AndroidRuntime(17085):    at android.widget.AbsListView$CheckForLongPress.run(AbsListView.java:2530)
  01-05 12:25:17.551: E/AndroidRuntime(17085):    at android.os.Handler.handleCallback(Handler.java:605)
  01-05 12:25:17.551: E/AndroidRuntime(17085):    at android.os.Handler.dispatchMessage(Handler.java:92)
  01-05 12:25:17.551: E/AndroidRuntime(17085):    at android.os.Looper.loop(Looper.java:137)
  01-05 12:25:17.551: E/AndroidRuntime(17085):    at android.app.ActivityThread.main(ActivityThread.java:4340)
  01-05 12:25:17.551: E/AndroidRuntime(17085):    at java.lang.reflect.Method.invokeNative(Native Method)
  01-05 12:25:17.551: E/AndroidRuntime(17085):    at java.lang.reflect.Method.invoke(Method.java:511)
  01-05 12:25:17.551: E/AndroidRuntime(17085):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
  01-05 12:25:17.551: E/AndroidRuntime(17085):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
  01-05 12:25:17.551: E/AndroidRuntime(17085):    at dalvik.system.NativeStart.main(Native Method)
  </code></pre>