QUERY PLAN
Sort (cost=80.06..80.09 rows=9 width=227)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..79.92 rows=9 width=227)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{1186,4492,4491,4443,4486,4504}'::integer[])))