QUERY PLAN
Sort (cost=115.79..115.86 rows=25 width=223)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..115.21 rows=25 width=223)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{3300,3327,3392,3364,3348,3363,3388,3415,3384,3502,3525,3537,3549,3550,3493,3620,3598,3661,3703,3724}'::integer[])))