QUERY PLAN
Sort (cost=91.09..91.12 rows=11 width=227)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..90.90 rows=11 width=227)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4486,4495,4248,4235,2765,3470,3620,4467,4476,4479}'::integer[])))