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 'ORDER BY objectimage.priority' at line 1
#1 Function trace_message in "/disk2/home/perlich/public_html/realestate/include/db.class.php" at line 20.
#2 Function runQuery in "/disk2/home/perlich/public_html/realestate/include/db.class.php" at line 281.
#3 Function selectFieldsWhere in "/disk2/home/perlich/public_html/realestate/include/db.class.php" at line 253.
#4 Function selectWhere in "/disk2/home/perlich/public_html/realestate/draw/plugin/property.draw.php" at line 951.
#5 Function drawRotator in "/disk2/home/perlich/public_html/realestate/draw/plugin/property.draw.php" at line 77.
#6 Function large in "/disk2/home/perlich/public_html/realestate/actions/action.switch.php" at line 18.
#7 Function include in "/disk2/home/perlich/public_html/realestate/index.php" at line 261.