QUERY PLAN
Sort (cost=76.02..76.04 rows=8 width=219)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..75.90 rows=8 width=219)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{1558,4131,4136,4137,4140,4138,4139}'::integer[])))