<?php$query = "SELECT c.id, c.title, c.sectionid, s.title AS section, f.id_user"."\n FROM #__content c"."\n INNER JOIN #__sections s ON s.id=c.sectionid"."\n INNER JOIN #__favored f ON f.id_content=c.id"."\n WHERE f.id_user = '".$my->id."'";$database->setQuery($query);$rows = $database->loadObjectList();if ($rows) { foreach ($rows as $row) { echo 'CONTENT ID: '.$row->id."<br />\n"; echo 'CONTENT TITLE: '.$row->title."<br />\n"; echo 'SECTION ID: '.$row->sectionid."<br />\n"; echo 'SECTION TITLE: '.$row->section."<br />\n"; echo 'USER ID: '.$row->id_user."<br />\n"; echo "<hr />\n"; }}?>