modifying article pagination query for multi-tenant