QUERY PLAN
Sort (cost=83.27..83.29 rows=9 width=223)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..83.13 rows=9 width=223)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4073,4159,3497,3699,3805,3796,2941,2766}'::integer[])))