QUERY PLAN
Sort (cost=102.14..102.19 rows=23 width=253)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..101.61 rows=23 width=253)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4055,3763,3755,3725,3746,3803,3857,3935,3916,3900,3967,3978,3997,4088,4091,4095,4094,4098}'::integer[])))