QUERY PLAN
Sort (cost=84.37..84.41 rows=13 width=250)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..84.13 rows=13 width=250)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4078,4075,195,4024,4055,4061,4068,4020,4071,4044,2351}'::integer[])))