Replaced new lines with ampersands in custom query.