You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND up.PID = p.PID
AND mi.SectionID = s.SectionID
AND s.SectionID = si.S' at line 11Unable to query database:
SELECT m.MenuLKUP, m.MenuName, m.MenuID,
s.SectionID, s.SectionName, si.DisplayOrder,
p.PID, p.PageName, p.PageAddress, p.PathFromRoot
FROM userpage_view up,
sec_page p,
sec_menu m,
sec_menuitem mi,
sec_section s,
sec_sectionitem si
WHERE UID =
AND up.PID = p.PID
AND mi.SectionID = s.SectionID
AND s.SectionID = si.SectionID
AND si.PageID = p.PID
AND si.DisplayOrder > 0
AND mi.MenuID = m.MenuID
AND m.MenuLKUP = 'TOOLBAR'
AND (Select_Ind = 1 OR Edit_Ind = 1)
ORDER BY mi.DisplayOrder, si.DisplayOrder
Backtrack:/home/baxleyso/public_html/wiki/ControlPanel/includes/NavSidebar.php:67