Internal Server Error

SQLSTATE[42000]: Syntax error or access violation: 1064 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 `gluePrice` DESC, `glueTime` ASC, `added` DESC LIMIT 1' at line 1 [/srv/www/vsyanakhodka/public_html/libs/idiorm.php:429]

[libs/idiorm.php:429] PDOStatement->execute()
[libs/idiorm.php:1828] ORM::_execute()
[libs/idiorm.php:607] ORM->_run()
[libs/idiorm.php:718] ORM->find_one()
[libs/idiorm.php:668] ORM->_call_aggregate_db_function()
[index.php:1206] ORM->count()
[/srv/www/moygorod/public_html/lib/base.php:1642] Base->call()
[index.php:3788] Base->run()