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 ('{4071,3364,4016,1558,4132,4131,4112,4111}'::integer[])))