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 ('{3364,3746,3967,3978,1558,4106,4131,4112,4140}'::integer[])))