Why this works
database.rawQuery("select * from Assignments left join Tasks on Tasks._id = Assignments.TaskID left join Flights on Flights.ARR_FLT_ID = Tasks.ArrivalFlightID where Assignments.TaskAccepted='Y' and Tasks.RecordChangedByUI = 'N' and Assignments.AssignedTo=? order by Assignments.AssignedOn desc", new String[]{ String.valueOf(empID) });
And this DOES NOT ..
database.rawQuery("select Tasks.Aircraft AS Aircraft, Tasks.Discrepancy AS Discrepancy, Flights.ARR_FLT AS ARR_FLT from Assignments left join Tasks on Tasks._id = Assignments.TaskID left join Flights on Flights.ARR_FLT_ID = Tasks.ArrivalFlightID where Assignments.TaskAccepted='Y' and Tasks.RecordChangedByUI = 'N' and Assignments.AssignedTo=? order by Assignments.AssignedOn desc", new String[]{ String.valueOf(empID) });
Difficult to tell without you explaining further. A possibility is that when you
SELECT *, the column_idis being returned (provided the column exists) which is needed for cursors in Android. In your otherSELECTstatement it is not being selected.You need to explain further – what you are trying to do, post the logcat/errors produced etc.