Internal Server Error

PDOStatement: 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 `id` LIMIT 9999' at line 1

[lib/base.php:2178] Base->error()
[lib/db/sql/mapper.php:293] DB\SQL->exec()
[lib/db/sql/mapper.php:333] DB\SQL\Mapper->select()
[app/nomad/dbm.php:207] DB\SQL\Mapper->find()
[app/nomad/dbm.php:225] DBM::find()
[app/trip.php:74] DBM::find_one()
[lib/base.php:1791] Trip->view()
[lib/base.php:1612] Base->call()
[index.php:102] Base->run()