diff --git a/main/inc/lib/urlmanager.lib.php b/main/inc/lib/urlmanager.lib.php index 267c8f0e7b..10f5931244 100755 --- a/main/inc/lib/urlmanager.lib.php +++ b/main/inc/lib/urlmanager.lib.php @@ -345,7 +345,7 @@ class UrlManager } $where .= " AND (parent_id IS NULL) "; - $sql = "SELECT id, name, access_url_id + $sql = "SELECT u.id, name, access_url_id FROM $table u INNER JOIN $table_url_rel ON $table_url_rel.course_category_id = u.id