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