in reply to Need help to improve pagination

Nice SQLi vector there, but you've been warned about this already.