If sql.safe_mode is enabled, MySQL connection ignores any arguments passed to them. This is caused due to your php.ini sql safe mode settings. Simply edit the server php.ini file and set the "sql.safe_mode" to Off: If you are unsure where the php.ini file is located, please contact the hosting company or your web server admin.
sql.safe_mode = Off
After the update, restart the web server so that the changes goes into effect.