A Database Error Occurred

Error Number: 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 id DESC limit 1' at line 1

select id,title from web_news where id <2 and bid= order by id DESC limit 1

Filename: D:\ZKEYS\www\hongjuda\wwwroot\system\database\DB_driver.php

Line Number: 330