fix query for fetching posted billings