Community

MySQL Error? user warning: Unknown column 'n.0'...... in node/node.module on line 754

I get this lovely error on random events but this one today was from adding something to my cart (Ubercart).

user warning: Unknown column 'n.0' in 'where clause' query: SELECT n.nid, n.type, n.language, n.uid, n.status, n.created, n.changed, n.comment, n.promote, n.moderate, n.sticky, n.tnid, n.translate, r.vid, r.uid AS revision_uid, r.title, r.body, r.teaser, r.log, r.timestamp AS revision_timestamp, r.format, u.name, u.picture, u.data FROM node n INNER JOIN users u ON u.uid = n.uid INNER JOIN node_revisions r ON r.vid = n.vid WHERE n.0 = '35' AND n.1 = '35' in /modules/node/node.module on line 754.

Has anyone else ran into this. I am trying to figure out what is the culprit. And I don't know if it's only Ubercart cause it has come up in other instances too as well.