QUERY PLAN
Sort (cost=77.30..77.32 rows=8 width=227)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..77.18 rows=8 width=227)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{3325,4074,3705,3679,4497}'::integer[])))