Query failed (SELECT node.ExternalID, node.TypeID, node.FullName, node.StartDate,node.Status, node.Website, node.Filename,
node.NodeID, node.Abstract, node.CustomFields
FROM node
INNER JOIN association AS orderedwrite ON orderedwrite.node2=node.nodeid
INNER JOIN node AS author on author.nodeid=orderedwrite.node1
INNER JOIN association as projectreport ON projectreport.node2=node.nodeid WHERE author.nodetype=1 AND node.nodetype=5 AND projectreport.node1=
ORDER BY node.Typeid,node.StartDate DESC,node.externalid ): 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 'ORDER BY node.Typeid,node.StartDate DESC,node.externalid' at line 7