I have written this code :-
[database open];
NSString *stringQuery = [NSString stringWithFormat:@"SELECT email, firstName, id, lastName, phone FROM contacts WHERE id = '%@'", _stringID];
NSString *stringQuery2 = [NSString stringWithFormat:@"SELECT id, status FROM members WHERE id = '%@'", _stringID];
FMResultSet *result = [AppDel.database executeQueryWithFormat:stringQuery, stringQuery2];
if ([result next])
{
labelEmail.text = [result stringForColumn:@"email"];
labelFirstName.text = [result stringForColumn:@"firstName"];
labelLastName.text = [result stringForColumn:@"lastName"];
labelCellPhone.text = [result stringForColumn:@"phone"];
labelSignInStatus.text = [result stringForColumn:@"status"];
}
[result close];
[database close];
Its gives me the value at labelCellPhone.text when i pass it through labelSignInStatus.text they showing "Warning: I could not find the column named 'status'" & when i pass the query in Sqlite browser they give me correct result.I have also create FMResultSet object again named FMResultSet *result1 & pass query its showing me the same error. Can anybody help me that how can i pass two queries in FMResultSet. Thanks