QUERY PLAN
Sort (cost=99.65..99.71 rows=23 width=253)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..99.13 rows=23 width=253)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4055,3661,3703,3763,3755,3724,3725,3746,3803,3857,3935,3916,3900,3967,3978,3997,4088}'::integer[])))