I was trying to avoid that because there's sensitive data in them, but I've made some changes to the code to keep the overall structure the same:
SELECT
Max(TBL_TRANS.PROD_DT) AS MaxOfPROD_DT,
TBL_ACCOUNTS.LOAN_NBR,
TBL_TRANS.ACCT_NBR,
TBL_TRANS.TRAN_CD
FROM
TBL_ACCOUNTS LEFT JOIN...