Was escaping single quotes incorrectly