これは私のHQLクエリですが、これを実行すると、次のエラーが発生しました。この問題を解決するにはどうすればよいですか
エラー: 予期しないトークン: d1
select d from DimensionStone d inner join d.stockRegister s where d.stockRegister.stockRegisterId <=? and s.application.applicationId=?
and d.isIssued='No' or (s.stockRegisterId <=? and d.isIssued='Yes' and d.issuedDate>(select max(updatedOn) from StockRegister st where st.stockRegisterId<? and st.application.applicationId=?)) and d not in(select d1 from DimensionStone d1 inner join d1.stockRegister s1 where s1.stockRegisterId <=? and s1.application.applicationId=? d1.isIssued='No'