QUERY PLAN
Sort (cost=4.12..4.13 rows=1 width=248)
Sort Key: t.settle_at
-> Append (cost=0.00..4.11 rows=1 width=248)
-> Nested Loop (cost=0.00..4.10 rows=1 width=248)
-> Seq Scan on tbl_erp_other_collect_tickets r (cost=0.00..2.66 rows=1 width=131)
Filter: ((bank_settle_at IS NOT NULL) AND (status = ANY ('{2,6}'::integer[])) AND (id = 63))
-> Seq Scan on tbl_erp_other_collect_ticket_bank_outs t (cost=0.00..1.43 rows=1 width=48)
Filter: ((id IS NOT NULL) AND (erp_other_collect_ticket_id = 63))