Yeah to get PHP-CLI working it needs to append ' to close the statement. It would be neat with an AppendEncoder but not sure best way to go without one.