QUERY PLAN
Sort (cost=88.32..88.35 rows=10 width=227)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..88.16 rows=10 width=227)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4493,4494,4495,4481,4480,4324,4479,4478,4486}'::integer[])))