DAR-254 Refactored the WallHistory->getLastPosts() function. @sqlreview