QUERY PLAN
Sort (cost=118.87..118.93 rows=23 width=227)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..118.35 rows=23 width=227)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4493,4494,4495,4481,4480,4433,4324,4323,4373,4144,4446,4467,4476,4462,4479,4457,4478,4486,4453,4399}'::integer[])))