Closed (fixed)
Project:
Pathauto
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Jun 2006 at 11:17 UTC
Updated:
13 Sep 2006 at 23:29 UTC
user warning: Column: 'nid' in field list is ambiguous query: SELECT nid,type,title,uid,created,src,dst FROM drupal_node LEFT JOIN drupal_url_alias ON CONCAT('node/', nid) = src
Change line 203 from:
$query = 'SELECT nid,type,title,uid,created,src,dst FROM {node} '.
"LEFT JOIN {url_alias} ON CONCAT('node/', nid) = src";to:
$query = 'SELECT n.nid, type, title, uid, created, src, dst'
. ' FROM {node} n'
. "LEFT JOIN {url_alias} ON CONCAT('node/', n.nid) = src";
Comments
Comment #1
gregglesI assume you are talking about pathauto_node.inc, right?
It took a little searching to see what you were talking about, but your suggested fix makes sense. Care to provide a patch?
Thanks
Comment #2
gregglesI'm going to fix this in http://drupal.org/node/69789 since it hits that same query. Thanks for the report.