QUERY PLAN
Sort (cost=85.55..85.58 rows=9 width=227)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..85.41 rows=9 width=227)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4497,4424,4390,4426,4377,4393,4396,4450}'::integer[])))