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 ('{3188,3768,3886,3953,4130,4198,4305,4260,4262,4313}'::integer[])))