QUERY PLAN
Sort (cost=81.12..81.14 rows=10 width=219)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..80.95 rows=10 width=219)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{2637,3316,3368,3364,3470,3661,3703,3738,4016}'::integer[])))