QUERY PLAN
Sort (cost=104.60..104.67 rows=26 width=250)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..103.99 rows=26 width=250)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4075,3620,3525,3661,3703,3763,3755,3724,3725,3746,3803,3857,3935,3916,3900,3967,3978,3997,4055}'::integer[])))