Can you do `addslashes()` around `$v` to avoid single quote issues?