How can I select the last edited version of the post?
You need a groupwise max.  I think you will need one query to find the "latest" question, then one for the latest answer.  Then UNION ALL the results together in order to get them in the same resultset.