fixes #5020 pagination issues on HasManyThrough returing intermediate table results as well
Merge pull request #5021 from Luceos/fix-hasmanythrough-pagination

fixes #5020 pagination issues on HasManyThrough returing intermediate ta...