QUERY PLAN
Sort (cost=100.92..100.92 rows=2 width=227)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..100.91 rows=2 width=227)
Filter: ((sales_contract_id = ANY ('{4324,4323}'::integer[])) AND (status = 2))