--- menu.inc.1 2005-02-01 11:02:47.000000000 +0100 +++ menu.inc 2005-02-01 10:58:46.000000000 +0100 @@ -726,7 +726,7 @@ function _menu_build() { // Now fetch items from the DB, reassigning menu IDs as needed. if (module_exist('menu')) { - $result = db_query('SELECT * FROM {menu} ORDER BY mid ASC'); + $result = db_query(db_rewrite_sql('SELECT m.mid, m.* FROM {menu} m ORDER BY m.mid ASC', 'm', 'mid')); while ($item = db_fetch_object($result)) { // Handle URL aliases if entered in menu administration. $item->path = drupal_get_normal_path($item->path); --- database.inc.1 2005-02-01 11:03:55.000000000 +0100 +++ database.inc 2005-02-01 11:02:34.000000000 +0100 @@ -177,7 +177,7 @@ function db_queryd($query) { * @param $query * Query to be rewritten. * @param $primary_table - * Name or alias of the table which has the primary key field for this query. Possible values are: comments, forum, node, term_data, vocabulary. + * Name or alias of the table which has the primary key field for this query. Possible values are: comments, forum, node, menu, term_data, vocabulary. * @param $primary_field * Name of the primary field. * @param $args @@ -219,7 +219,7 @@ function _db_rewrite_sql($query = '', $p * @param $query * Query to be rewritten. * @param $primary_table - * Name or alias of the table which has the primary key field for this query. Possible values are: comments, forum, node, term_data, vocabulary. + * Name or alias of the table which has the primary key field for this query. Possible values are: comments, forum, node, menu, term_data, vocabulary. * @param $primary_field * Name of the primary field. * @param $args