QUERY PLAN
Sort (cost=107.00..107.05 rows=23 width=250)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..106.47 rows=23 width=250)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4075,4024,4043,4027,4035,4026,4065,4064,4049,4047,4055,4061,4054,4050,4048,4068,4020,4071,4044,4029}'::integer[])))