fixed getMostRecentPost() in posts model