What do you get with that query? Is this on GAE (on GAE, I don't think the
id's are necessarily in order)?
On Wednesday, January 4, 2012 6:20:36 PM UTC-5, Andrew wrote:
>
> In some forum code, I am trying to select the latest thread specific
> to a forum category. But I am unsure how to do this
>
> Any ideas are greatly appreciated
>
> This is the code I tried with
>
> {{last_posts = db(db.forum_post.category ==
> db.category.id).select(db.forum_post.ALL, orderby=~db.forum_post.id,
> limitby=(0,1))}}