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 exhibition_images.ID' at line 1
#1 Function trace_message in "/disk2/home/kagbc/public_html/include/db.class.php" at line 20.
#2 Function runQuery in "/disk2/home/kagbc/public_html/include/db.class.php" at line 277.
#3 Function selectFieldsWhere in "/disk2/home/kagbc/public_html/include/db.class.php" at line 250.
#4 Function selectWhere in "/disk2/home/kagbc/public_html/include/plugin/exhibition.class.php" at line 258.
#5 Function getImages in "/disk2/home/kagbc/public_html/draw/plugin/exhibition.draw.php" at line 415.
#6 Function drawLargeExhibition in "/disk2/home/kagbc/public_html/draw/plugin/exhibition.draw.php" at line 391.
#7 Function drawExhibitionListNew in "/disk2/home/kagbc/public_html/draw/plugin/exhibition.draw.php" at line 37.
#8 Function drawExhibition in "/disk2/home/kagbc/public_html/draw/plugin/exhibition.draw.php" at line 17.
#9 Function drawFromType in "/disk2/home/kagbc/public_html/actions/action.switch.php" at line 25.
#10 Function include in "/disk2/home/kagbc/public_html/index.php" at line 299.