diff --git a/main/lp/learnpath.class.php b/main/lp/learnpath.class.php index 14def51060..0305efb6e6 100755 --- a/main/lp/learnpath.class.php +++ b/main/lp/learnpath.class.php @@ -2220,7 +2220,7 @@ class learnpath // Getting all the information about the item. $sql = "SELECT * FROM $tbl_lp_item as lp INNER JOIN $tbl_lp_item_view as lp_view - ON lp.id = lp_view.lp_item_id + ON (lp.id = lp_view.lp_item_id AND lp.c_id = lp_view.c_id) WHERE lp.id = '".$_SESSION['oLP']->current."' AND lp.c_id = $course_id AND