"You should enter only a single query in a row." ???

I have this query

delete from PLSM_note where noteId in (fn!substitute(fn!joinarray(ac!selectedRecordIds, ";"),";",","))

as shown in the below image.

This query should translate to:

delete from PLSM_note where noteId in (1,2,4,50)

However, I'm getting this message

A) This is all on a single row
B) This is a single query

What's the solution to this?

  Discussion posts and replies are publicly visible