SQL for getting expiring auctions