fix pagination

use LIMIT (X * 10) -10, 10 instead of LIMIT (X * 10) .