QUERY PLAN
Sort (cost=91.99..92.03 rows=16 width=249)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..91.67 rows=16 width=249)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4035,3573,3645,3709,3737,3783,3844,3915,3998,4026,4016,4086,4082,4083}'::integer[])))