QUERY PLAN
Sort (cost=39.68..39.69 rows=1 width=62)
Sort Key: id
-> Seq Scan on tbl_erp_payment_ticket_settles (cost=0.00..39.67 rows=1 width=62)
Filter: ((erp_other_payment_ticket_id IS NOT NULL) AND (erp_payment_ticket_id = 2065))