QUERY PLAN
Sort (cost=150.80..150.85 rows=23 width=227)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..150.27 rows=23 width=227)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4349,3916,4433,4248,4235,4257,4291,4285,4324,4323,4373,4112,4106,4144,4016,3935,3997,3967,4388,4399}'::integer[])))