QUERY PLAN
Sort (cost=78.57..78.59 rows=9 width=219)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..78.43 rows=9 width=219)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{2988,3366,3713,3809,3881,3952,4035,3854}'::integer[])))