diff --git a/system/database/drivers/mysqli/mysqli_result.php b/system/database/drivers/mysqli/mysqli_result.php
index be7ec35..57c89ea 100644
--- a/system/database/drivers/mysqli/mysqli_result.php
+++ b/system/database/drivers/mysqli/mysqli_result.php
@@ -63,7 +63,7 @@
 	function list_fields()
 	{
 		$field_names = array();
-		while ($field = mysql_fetch_field($this->result_id))
+		while ($field = mysqli_fetch_field($this->result_id))
 		{
 			$field_names[] = $field->name;
 		}