Mutillidae Install Producing Odd Database Errors

Having some trouble installing Mutillidae on my Debian system. I downloaded the latest version from here and unzipped the file inside /var/www/html. I created a database for the web interface to use, granted permissions and tested I could log into it from the command-line. When I started it up I had one error that I resolved by adding the database creditials to /var/www/html/mutillidae/includes/config.inc. However, I'm still getting a 500 error and this is what I find corresponds to it in /var/log/apache2/error_log:

[Sat Mar 29 04:19:34.564661  2014] [:error] [pid 15476] [client 127.0.0.1:41702] PHP Warning:   mysqli::mysqli(): (28000/1045): 
Access denied for user  'user'@'localhost' (using password: NO) in  /var/www/html/mutillidae/classes/MySQLHandler.php on line 213

[Sat  Mar 29 04:19:34.564965 2014] [:error] [pid 15476] [client  127.0.0.1:41702] PHP Warning:  mysqli::mysqli(): (28000/1045):
Access  denied for user 'user'@'localhost' (using password: YES) in  /var/www/html/mutillidae/classes/MySQLHandler.php on line 219

Both lines 213 and 219 of /var/www/html/mutillidae/classes/MySQLHandler.php contain this code to login into the database:

MySQLConnection = new mysqli($HOSTNAME, $USERNAME, $PASSWORD);

What's odd is that the first error says using password "NO" and the second one says "YES". Not sure if anyone is familiar with this software, but any suggestions appreciated.

Fixed. There were some constants at the top of that file that were overwriting with a blank password. Thus I had the different "YES" and "NO" replies. Changed that part and it worked. Someone can mark this solved.