Where Clause not equal to query

Hi,
I am trying to run retrieve objects using where clause and this line
String whereClause =“studentId != '”+student.getObjectId()+"’";

but I get

I/System.out: Server reported an error - Invalid where clause: studentId.

Kindly help me with what I might be dooing wrong

It looks like there is no studentId column in a table you are executing this query to

Please describe your table definition. And what’s your app id ?

Hi Vitaly, Thank you for the quick response and pointing it out the error to me. It overlooked the column name and used studentId instead of objectId. Greatly appreciated