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 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 278.
#3 Function selectFieldsWhere in "/disk2/home/perlich/public_html/realestate/include/db.class.php" at line 250.
#4 Function selectWhere in "/disk2/home/perlich/public_html/realestate/draw/plugin/property.draw.php" at line 861.
#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 310.