I am getting this error when executing this sql

db.GqlQuery("select * from <kind_name> WHERE <propert_name_x> != :val
ORDER BY <property_name_y>  DESC LIMIT 5 ", val="blah")

BadArgumentError: First ordering property must be the same as
inequality filter property,

I know this is because of two diff. property name I am using


<propert_name_x>
 <property_name_y>

But I would to have the query that way, gives me the first 5 items
based on <property_name_y> but should not include <propert_name_x>.

How to resolve this ?

Thanks.

--RJ

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to