fixed check for a method named 'field_names' which doesn't exist to 'list_fields' which is the correct method.

http://codeigniter.com/bug_tracker/bug/5787/
diff --git a/system/database/DB_utility.php b/system/database/DB_utility.php
index 195e4c4..6619e80 100644
--- a/system/database/DB_utility.php
+++ b/system/database/DB_utility.php
@@ -175,7 +175,7 @@
 	 */
 	function csv_from_result($query, $delim = ",", $newline = "\n", $enclosure = '"')
 	{
-		if ( ! is_object($query) OR ! method_exists($query, 'field_names'))
+		if ( ! is_object($query) OR ! method_exists($query, 'list_fields'))
 		{
 			show_error('You must submit a valid result object');
 		}	
diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index cb9a370..3d5e9b3 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -75,10 +75,6 @@
 	<li>Database
 		<ul>
 			<li>Added where_in to the list of expected arguments received by <kbd>delete()</kbd>.</li>
-			<li>Fixed a bug when doing 'random' on order_by() (#5706).</li>
-			<li>Fixed a bug where adding a primary key through Forge could fail (#5731).</li>
-			<li>Fixed a bug when using DB cache on multiple databases (#5737).</li>
-			<li>Fixed a bug where TRUNCATE was not considered a "write" query (#6619).</li>
 		</ul>
 	</li>
 	<li>Helpers
@@ -102,6 +98,15 @@
 
 <h3>Bug fixes for 1.7.1</h3>
 <ul>
+	<li>Database
+		<ul>
+			<li>Fixed a bug when doing 'random' on order_by() (#5706).</li>
+			<li>Fixed a bug where adding a primary key through Forge could fail (#5731).</li>
+			<li>Fixed a bug when using DB cache on multiple databases (#5737).</li>
+			<li>Fixed a bug where TRUNCATE was not considered a "write" query (#6619).</li>
+			<li>Fixed a bug where csv_from_result() was checking for a nonexistent method.</li>
+		</ul>
+	</li>
 	<li>Fixed assorted user guide typos or examples (#5998, #6093, #6259, #6339, #6432, #6521).</li>
 	<li>Fixed a bug in the MySQLi driver when no port is specified</li>
 	<li>Fixed a bug (#5702), in which the field label was not being fetched properly, when "matching" one field to another.</li>