--- path_access.module.orig	2009-01-20 14:24:09.000000000 -0500
+++ path_access.module	2009-01-20 14:02:24.000000000 -0500
@@ -119,7 +119,7 @@ function path_access_admin_role_configur
   // Obtain role name for the page if there is no existing path settings for this role id
   if (!$settings) {
     $rolename = db_result(db_query("SELECT name FROM {role} WHERE rid = %d", $roleid));
-    $pid = db_next_id('path_access');
+    $pid = db_next_id('{path_access}_pid');
     db_query("INSERT INTO {path_access} (pid, rid, pages, visibility) VALUES (%d, %d, '', '')", $pid, $roleid);
   } else {
     $rolename = $settings['name'];
