diff --git a/e107_handlers/mysql_class.php b/e107_handlers/mysql_class.php
index 2c1e2a560..75c7afdf1 100644
--- a/e107_handlers/mysql_class.php
+++ b/e107_handlers/mysql_class.php
@@ -475,7 +475,8 @@ class e_db_mysql
}
if ($debug !== FALSE || strstr($_SERVER['QUERY_STRING'], 'showsql'))
{
- $queryinfo[] = "{$qry_from}: $query";
+ $debugQry = is_array($query) ? print_a($query,true) : $query;
+ $queryinfo[] = "{$qry_from}: ".$debugQry;
}
if ($log_type != '')
{