Download & Extend

dev version gives Unknown column 'nc.uid' in 'IN/ALL/ANY subquery' query error

Project:Content Blocker
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

user warning: Unknown column 'nc.uid' in 'IN/ALL/ANY subquery' query: SELECT nc.nid FROM blog_node_comment_statistics nc WHERE ((nc.uid NOT IN(SELECT id FROM blog_contentblocker WHERE type = 'user' AND uid = 1) OR nc.uid IS NULL)) AND ( nc.comment_count > 0 ) ORDER BY nc.last_comment_timestamp DESC LIMIT 0, 10 in /home/kgus/public_html/includes/database.mysql.inc on line 172.

Comments

#1

Looks like an error in deciding which tables to alter. We need to either skip altering other than the node table or else ensure there's a join on the node table and refer to that.

#2

Status:active» fixed

I applied a fix to HEAD (which for the moment is still 5.x compatible). Please test and reopen this issue if it didn't solve the problem.

#3

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

nobody click here