Proper pagination in SQL | Dark Hacker News