QUERY PLAN
Sort (cost=111.98..112.00 rows=7 width=227)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..111.88 rows=7 width=227)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4363,4364,4359,4377,4360,4366}'::integer[])))