The variable should be substituded, I think:
```
t("There was an error trying to restore the database. In query %s",$str_stmt)
```