Cannot query the database.

select URLName, Name from elevations where modelid = and status = 'enabled' order by name

Error:
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 'and status = 'enabled' order by name' at line 1
Trace: (database.class.php:113)
(data.class.php:92)
(main.class.php:227)
(default.class.php:70)
(default.class.php:38)
(default.class.php:278)
(main.class.php:558)
(manager.class.php:24)
(document.class.php:207)
(document.class.php:93)
(index.php:13)