QUERY PLAN
Sort (cost=73.52..73.55 rows=9 width=219)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..73.38 rows=9 width=219)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4071,3736,4132,4131,4130,4111}'::integer[])))