Tutorial video: Parameter ‘sessionId’ is not used in the query

DevelopmentException: Parameter ‘sessionId’ is not used in the query

I did as it was shown in tutorial video but get this error. There is code:
Yes, project name is untitled, it’s correct.

Long sessionSameTime = dataManager.loadValue("select count(s) from untitled_Session s where " +
"(s.startDate between :dayStart and :dayEnd) " +
"and s.speaker = :speaker " +
“and s.id <> sessionId”, Long.class)
.parameter(“dayStart”, dayStart)
.parameter(“dayEnd”, dayEnd)
.parameter(“speaker”, session.getSpeaker())
.parameter(“sessionId”, session.getId())
.one();

You forgot : in the condition and s.id <> :sessionId

2 Likes