I've been trying to paginate posts on each of the profile pages for the writers on the site and to get the posts, I'm using a custom SQL query. The only problem is that they aren't paginated and I can't figure out how to do so. Any help?
Page code:
http://pastebin.com/A7mQZcUg