Fixed mysql error. Ticket #1273

pandora_console/include/functions_treeview.php