Invalid SQL:
SELECT SQL_CALC_FOUND_ROWS node.nodeid AS itemid
,(node.nodeleft = 1) AS isroot, node.nodeid, node.contenttypeid, node.contentid, node.url, node.parentnode, node.styleid, node.userid,
node.layoutid, node.publishdate, node.setpublish, node.issection, parent.permissionsfrom as parentpermissions,
node.permissionsfrom, node.publicpreview, node.showtitle, node.showuser, node.showpreviewonly, node.showall,
node.showupdated, node.showviewcount, node.showpublishdate, node.settingsforboth, node.includechildren, node.editshowchildren,
node.shownav, node.hidden, node.nosearch,
info.description, info.title, info.html_title, info.viewcount, info.creationdate, info.workflowdate,
info.workflowstatus, info.workflowcheckedout, info.workflowlevelid, info.associatedthreadid,
user.username, sectionorder.displayorder, thread.replycount, parentinfo.title AS parenttitle
FROM vb3_cms_node AS node
INNER JOIN vb3_cms_nodeinfo AS info ON info.nodeid = node.nodeid
LEFT JOIN vb3_user AS user ON user.userid = node.userid
LEFT JOIN vb3_thread AS thread ON thread.threadid = info.associatedthreadid
LEFT JOIN vb3_cms_sectionorder AS sectionorder ON sectionorder.sectionid = 1
AND sectionorder.nodeid = node.nodeid
LEFT JOIN vb3_cms_node AS parent ON parent.nodeid = node.parentnode
LEFT JOIN vb3_cms_nodeinfo AS parentinfo ON parentinfo.nodeid = parent.nodeid
INNER JOIN vb3_cms_node AS rootnode
ON rootnode.nodeid = 1 AND (node.nodeleft BETWEEN rootnode.nodeleft AND rootnode.noderight) AND node.nodeleft != rootnode.nodeleft WHERE ( (node.permissionsfrom IN (1)) OR (node.userid =1) OR (node.permissionsfrom IN (1) AND node.setpublish = 1 AND node.publishdate <1263471118)) AND node.contenttypeid <> 17 AND node.new != 1 AND ( (node.permissionsfrom IN (1)) OR (node.userid =1) OR (node.permissionsfrom IN (1) AND node.setpublish = 1 AND node.publishdate <1263471118))
ORDER BY CASE WHEN sectionorder.displayorder > 0 THEN sectionorder.displayorder ELSE 9999999 END ASC,
node.publishdate DESC LIMIT 0, 7;
,(node.nodeleft = 1) AS isroot, node.nodeid, node.contenttypeid, node.contentid, node.url, node.parentnode, node.styleid, node.userid,
node.layoutid, node.publishdate, node.setpublish, node.issection, parent.permissionsfrom as parentpermissions,
node.permissionsfrom, node.publicpreview, node.showtitle, node.showuser, node.showpreviewonly, node.showall,
node.showupdated, node.showviewcount, node.showpublishdate, node.settingsforboth, node.includechildren, node.editshowchildren,
node.shownav, node.hidden, node.nosearch,
info.description, info.title, info.html_title, info.viewcount, info.creationdate, info.workflowdate,
info.workflowstatus, info.workflowcheckedout, info.workflowlevelid, info.associatedthreadid,
user.username, sectionorder.displayorder, thread.replycount, parentinfo.title AS parenttitle
FROM vb3_cms_node AS node
INNER JOIN vb3_cms_nodeinfo AS info ON info.nodeid = node.nodeid
LEFT JOIN vb3_user AS user ON user.userid = node.userid
LEFT JOIN vb3_thread AS thread ON thread.threadid = info.associatedthreadid
LEFT JOIN vb3_cms_sectionorder AS sectionorder ON sectionorder.sectionid = 1
AND sectionorder.nodeid = node.nodeid
LEFT JOIN vb3_cms_node AS parent ON parent.nodeid = node.parentnode
LEFT JOIN vb3_cms_nodeinfo AS parentinfo ON parentinfo.nodeid = parent.nodeid
INNER JOIN vb3_cms_node AS rootnode
ON rootnode.nodeid = 1 AND (node.nodeleft BETWEEN rootnode.nodeleft AND rootnode.noderight) AND node.nodeleft != rootnode.nodeleft WHERE ( (node.permissionsfrom IN (1)) OR (node.userid =1) OR (node.permissionsfrom IN (1) AND node.setpublish = 1 AND node.publishdate <1263471118)) AND node.contenttypeid <> 17 AND node.new != 1 AND ( (node.permissionsfrom IN (1)) OR (node.userid =1) OR (node.permissionsfrom IN (1) AND node.setpublish = 1 AND node.publishdate <1263471118))
ORDER BY CASE WHEN sectionorder.displayorder > 0 THEN sectionorder.displayorder ELSE 9999999 END ASC,
node.publishdate DESC LIMIT 0, 7;
error appears in the content section, how do I fix
Comment