You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND ruleID=65 ORDER BY objectjunction.ID' at line 1
#1 Function trace_message in "/disk2/home/lethliv/public_html/include/db.class.php" at line 20.
#2 Function runQuery in "/disk2/home/lethliv/public_html/include/db.class.php" at line 278.
#3 Function selectFieldsWhere in "/disk2/home/lethliv/public_html/include/db.class.php" at line 250.
#4 Function selectWhere in "/disk2/home/lethliv/public_html/draw/plugin/issue.draw.php" at line 20.
#5 Function getByArticle in "/disk2/home/lethliv/public_html/draw/plugin/article.draw.php" at line 17.
#6 Function Detail in "/disk2/home/lethliv/public_html/index.php" at line 225.