Objective c : how i can load posts of a specific user

How i can load posts of a specific user and thanks.

i use this function but i 've a error :
(Server reported an error: FAULT = ‘1017’ [Invalid where clause: Unknown column 'where clause] <Invalid where clause: Unknown column 'where clause> )

    BackendlessUser *user = backendless.userService.currentUser;


    BackendlessDataQuery *query = [BackendlessDataQuery query];
    query.whereClause = @"owner='user.getObjectId'";
    


    BackendlessCollection *gifts = [backendless.persistenceService find:[Post class] dataQuery:query];
    
    GiftsArray =[gifts getCurrentPage];
    NSLog(@"Total gift in the Backendless storage - %@", [gifts getTotalObjects]);

query.whereClause = @“owner=‘user.objectId’”;

thanks but still the same problem :confused:

it work only when i put a constant with the user id

query.whereClause = @“owner.objectId =‘0515D830-1201-A6C0-FF51-08EDC4DF9900’”;

but when i put automatically i 've no result

query.whereClause = @“owner.objectId =‘user.objectId’”;

The solution :smiley:
BackendlessUser *user = backendless.userService.currentUser;
BackendlessDataQuery *query = [BackendlessDataQuery query];
query.whereClause = [NSString stringWithFormat:@“owner.objectId = ‘%@’”, user.objectId];