Which rows are returned will depend on the database. You'd have to check the docs specific to the DB you're using, but my guess is it'll all be DB-specific, and you'd need a custom query to do it with an ORM framework.
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads