diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php index 53e92fccc8..ff34af94af 100644 --- a/phpBB/memberlist.php +++ b/phpBB/memberlist.php @@ -83,7 +83,8 @@ if(!$result = $db->sql_query($sql)) { if(DEBUG) { - error_die(SQL_QUERY, "Error getting memberlist.", __LINE__, __FILE__); + $error = $db->sql_error(); + error_die(SQL_QUERY, "Error getting memberlist.
Reason: ".$error['message']"
Query: $sql", __LINE__, __FILE__); } else { @@ -187,4 +188,4 @@ if(($selected_members = $db->sql_numrows($result)) > 0) } include('includes/page_tail.'.$phpEx); -?> \ No newline at end of file +?>