Fixed mySQLi code in class.php