Fixed an error issue with MySQLi