Changed from mysqli to PDO