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 dataset_entry.ID' at line 1
#1 Function trace_message in "/home/edl/public_html/include/db.class.php" at line 21.
#2 Function runQuery in "/home/edl/public_html/include/db.class.php" at line 280.
#3 Function selectFieldsWhere in "/home/edl/public_html/include/db.class.php" at line 251.
#4 Function selectWhere in "/home/edl/public_html/include/plugin/dataset.class.php" at line 24.
#5 Function getDatasetEntries in "/home/edl/public_html/include/plugin/chart.class.php" at line 52.
#6 Function getChartDataset in "/home/edl/public_html/draw/plugin/chart.draw.php" at line 14.
#7 Function drawChart in "/home/edl/public_html/action/action.switch.php" at line 183.
#8 Function include_once in "/home/edl/public_html/index.php" at line 306.