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 article_file.is_primary DESC, ID ASC' at line 1
#1 Function trace_message in "/disk2/home/perlich/public_html/include/db.class.php" at line 20.
#2 Function runQuery in "/disk2/home/perlich/public_html/include/db.class.php" at line 278.
#3 Function selectFieldsWhere in "/disk2/home/perlich/public_html/include/db.class.php" at line 250.
#4 Function selectWhere in "/disk2/home/perlich/public_html/include/plugin/article/articlefile.collection.php" at line 13.
#5 Function getFromArticle in "/disk2/home/perlich/public_html/include/plugin/article/article.class.php" at line 78.
#6 Function images in "/disk2/home/perlich/public_html/include/plugin/article/article.class.php" at line 66.
#7 Function image in "/disk2/home/perlich/public_html/draw/plugin/article/article.draw.php" at line 55.
#8 Function drawFullArticle in "/disk2/home/perlich/public_html/actions/action.switch.php" at line 108.
#9 Function run in "/disk2/home/perlich/public_html/draw/content/content.main.php" at line 31.
#10 Function custom in "/disk2/home/perlich/public_html/draw/content/content.main.php" at line 17.
#11 Function draw in "/disk2/home/perlich/public_html/index.php" at line 132.