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