LPS-32149 Error when excluding more than one site in the chat portlet

The method QueryPos#add(array) adds every element of the array as an individual positional parameter. To add all the elements as one only positional parameter (as for an IN clause) the elements must be first merged into a comma separated values string.