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 ('{4071,3364,3665,4016,1558,4132,4131,4112,4111}'::integer[])))