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 ('{3664,4002,3926,4106,4055,4112,4105}'::integer[])))