Fixed pr_overdue query