SQL/Gdn_Model: Get previous and next entry WHERE...
Maybe someone with SQL knowledge can help me out here:
I'm trying to fetch the previous and the next entry for an ID from the database.
I can't just go by the ID, because I need a where clause, e.g. "previous post by this user in that thread"
What is the "best" (most efficient) way to do this and how would I do it using Gdn_Model?