QUERY PLAN
Sort (cost=131.37..131.41 rows=15 width=227)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..131.08 rows=15 width=227)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4433,4457,4446,4453,4399,4467,4476,4478,4462,4479,4480,4481,4484}'::integer[])))