QUERY PLAN
Sort (cost=73.48..73.50 rows=7 width=219)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..73.38 rows=7 width=219)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4135,4136,4137,4140,4138,4139}'::integer[])))