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