QUERY PLAN
Sort (cost=12.71..12.71 rows=1 width=409)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..12.70 rows=1 width=409)
Filter: ((status = 2) AND (sales_contract_id = 8))