[Help] MySQL Syntax Error

hdimitrov

New Member
Joined
Dec 20, 2009
Messages
404
Reaction score
26
PDOException: 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 fit DESC LIMIT 0, 1' at line 1: SELECT * FROM {menu_router} WHERE path IN () ORDER BY fit DESC LIMIT 0, 1; Array ( ) in menu_get_item() (line 445 of D:\website\drupal\includes\menu.inc).

Това ми показва, къде точно е грешката?
с MySQL 5.1 съм.. ?!
 
Мдааа, ние сме ясновидци и без код ще ти помогнем да знаеш!
 
кода е цитиран там ама ето го реда:

Code:
 $router_item = db_query_range('SELECT * FROM {menu_router} WHERE path IN (:ancestors) ORDER BY fit DESC', 0, 1, array(':ancestors' => $ancestors))->fetchAssoc();