QUERY PLAN
Sort (cost=148.02..148.08 rows=22 width=227)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..147.53 rows=22 width=227)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4349,4313,4378,4325,4316,4318,4321,4320,4332,4319,4351,4322,4357,4328,4334,4335,4312,4327,4338}'::integer[])))