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