QUERY PLAN
Sort (cost=114.74..114.76 rows=8 width=227)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..114.62 rows=8 width=227)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4359,4325,4316,4408,4272,4414,4400}'::integer[])))