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 ('{3101,3112,3151,3250,3235,3232,3247,3249,3300,3327,3363,3392,3364,3348,3388,3415,3384,3470,2981,2963}'::integer[])))