I have seen something similar over the last couple of days on my test server. Funnier yet, the same variable gets properly evaluated in one statement (db_string) and then fails completely in another (db_multirow). But there I at least have consistency in terms that it always fails in the same place.