Your query should be valid, but it seems like Pentaho is having problems parsing it.
You could try to use
SELECT SUM(loan_receivable_detail.interest) AS interest,
loan_account_opening_id
FROM loan_receivable_detail
GROUP BY loan_account_opening_id
Which gives the same results as your query but without the subquery (Hopefully it will make Pentaho happy )