QUERY PLAN
Sort (cost=128.65..128.69 rows=16 width=227)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..128.33 rows=16 width=227)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{229,85,24,2,17,84,132,6,108,18,311,479}'::integer[])))