Added escaping of $ signs - apparently they have significance in Cypher 'IN' clauses.