Is this a correctly made JOIN:
// Build SUBJECT navigation and gather SUBJECT data here--------------------------------
$sqlCommand = "SELECT id, linklabel, pos FROM subjects INNER JOIN pages on id = pages.subjectid ORDER BY pos ASC";
$query = mysqli_query($myConnection, $sqlCommand) or die (mysqli_error());
?
Klemme