rewrite query so that DISTINCT, ORDER BY and LIMIT are not combined, use of subquery instead
rewrite query so that DISTINCT, ORDER BY and LIMIT are not combined, use of subquery instead

tigron/skeleton-pager,tigron/skeleton-pager