Fix query to show expiring posts