QUERY PLAN
Sort (cost=91.09..91.12 rows=11 width=227)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..90.90 rows=11 width=227)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{2337,2533,2572,2584,2789,2741,2740,2749,3208,3228}'::integer[])))