I don't think this is the correct format because the console stops at the nslog retrieving ownership results. Do i need to work around this? create a temp table to store the where for qr and then search for where user? or do can i just update my sql statement?
[database executeQuery:@"select * from ownership where qrcode = ? and user = ?;", ktQRcode, userktid];
NSLog(@"retrieving ownership results through qrcode and userid");
while ([results next]) {
OWNERSHIP *ktownership = [OWNERSHIP new];
ktownership.uniqueIDownership = [results intForColumn:@"id"];
ktownership.user = [results intForColumn:@"user"];
ktownership.qrcode = [results intForColumn:@"qrcode"];
ktownership.create_at = [results dateForColumn:@"create_at"];
[foundOwnership addObject:ktownership];
ownershipcount = [foundOwnership count];
NSLog(@"addnewownership count: %lu", foundOwnership.count);
NSLog(@"addnewownership Array: %@", foundOwnership);