QUERY PLAN
Sort (cost=113.09..113.15 rows=24 width=223)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..112.54 rows=24 width=223)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4055,4112,4106,4235,4144,3763,3755,3725,3746,3803,3857,3935,3900,3967,3978,3997,3916,4253,4252}'::integer[])))