title: android SELECT MAX not work
body: <p>I have tested this select in SQLite and it works but, when I use this in Android, it returns 0.</p>
  
  <p>Where am I going wrong?</p>
  
  <p>Thanks!!</p>
  
  <pre><code>final String idauto = bundle.getString("idtabella");
  
  DatabaseHelper databaseHelper = new DatabaseHelper(this);
  
  final SQLiteDatabase db = databaseHelper.getReadableDatabase();
  final Cursor cursordati = db.rawQuery("SELECT MAX('in_auto') AS in_auto "
      + "FROM inout WHERE id_auto ='" + idauto + "'", null);
  
  final int  Ingressi = cursordati.getColumnIndex("in_auto");  
  if(cursordati.moveToFirst()){  
      TextV.append("iprova: "+ Ingressi); 
      do {
          TextV.append("dprova: "+ Ingressi); 
      } while (cursordati.moveToNext());
      TextV.append("wprova: "+ Ingressi); 
  }
  </code></pre>