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,4291,4285,3598,4312,4373,4016,4223,3502,3525,3537,3549,3550,3493,3620,3661,3597,3703,3738,4338}'::integer[])))