<query name="getStudyTasksByParticipantId">
from StudyTask st
join (select max(lastUpdatedDate)as lastUpdatedDate, study, clinicalStudyRegistration from
StudyTask where clinicalStudyRegistration.participant.id in (:participantIds)
group by study, clinicalStudyRegistration ) lst
where st.lastUpdatedDate = lst.lastUpdatedDate
order by st.lastUpdatedDate desc
</query>
このクエリを実行すると、次のようなエラーが発生しますunexpected token: ( at line 3 col 30
。
このクエリの問題点