diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php index ff34af94af..ea7fdb41a6 100644 --- a/phpBB/memberlist.php +++ b/phpBB/memberlist.php @@ -164,7 +164,8 @@ if(($selected_members = $db->sql_numrows($result)) > 0) { if(DEBUG) { - error_die(SQL_QUERY, "Error getting total users.", __LINE__, __FILE__); + $error = $db->sql_error(); + error_die(SQL_QUERY, "Error getting total users. Reason: ".$error['message']."
Query: $sql", __LINE__, __FILE__); } else {