QUERY PLAN
Sort (cost=67.11..67.12 rows=3 width=223)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..67.09 rows=3 width=223)
Filter: ((status = 2) AND (sales_contract_id = 1186))