### Description This doesn't seem ideal but I don't know if there is a better way to deal with it. ```c# return pages.Where(o => o.PublishOn == pageVersionQuery .Where(p => p.PageId == o.PageId && p.PublishOn < parameter.ActiveOn) .Max(p => p.PublishOn) ); ```
Description
This doesn't seem ideal but I don't know if there is a better way to deal with it.