QUERY PLAN
Sort (cost=107.11..107.17 rows=23 width=249)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..106.59 rows=23 width=249)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{2808,2976,3198,3100,3151,3205,3105,2960,2824,4073,2984,3415,3030,2887,2783,2622,2922,2745,2817,4082}'::integer[])))