I copied a project from one server to another. Database has been copied also - a mysql-user has been created. acces to the appropriate database is granted. Settings in <projectdir>/protected/config/main.php has been updated.

CDbConnection failed to open the DB connection: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?' at line 1
Source File

/var/www/html/yii-1.0.1.r473/framework/db/CDbConnection.php(233)

when checking the query log of mysql i can see, that a connection is established, but no queries are executed against the database.