Amends to generated SQL pre-paging to ensure only the latest content versions are returned