mysql driver causing a notice in debug mode.

mysqli_query is called here (with wrong parameters) This should be be mysql_query.