Closed (fixed)
Project:
Cave your trolls
Version:
6.x-1.0-beta4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Feb 2010 at 09:07 UTC
Updated:
10 Jan 2011 at 08:50 UTC
user warning: Unknown column 'nc.uid' in 'where clause' query: SELECT nc.nid FROM node_comment_statistics nc WHERE (nc.uid NOT IN (739)) AND ( nc.comment_count > 0 )ORDER BY nc.last_comment_timestamp DESC LIMIT 0, 10 in /var/www/html/modules/comment/comment.module on line 316.
Comments
Comment #1
danielb commentedThat doesn't make sense. :/ This module does not affect comment queries unless the primary field is 'cid', which it is not in that case.
Comment #2
danielb commentedI can't reproduce this, and you have not sufficiently identified a bug. I will need to be told exactly what the problem with the code is, or given instructions to reproduce this, in order to do anything about it.
Comment #3
steven9 commentedActually it is not on enabling the module, but on checking the "Cave" user on any user profile. I get the warning error that later never goes away, it just stays there.
Comment #4
UnitedVision commentedthis happens to me as well. i just installed troll & cave. I click to cave a user and my block that shows recent comments on the home page disappears and I get the following error.
user warning: Unknown column 'nc.uid' in 'where clause' query: SELECT nc.nid FROM node_comment_statistics nc WHERE (nc.uid NOT IN (33)) AND ( nc.comment_count > 0 )ORDER BY nc.last_comment_timestamp DESC LIMIT 0, 10 in /hermes/bosweb/web222/b2221/ipg.mydomain/modules/comment/comment.module on line 314.
Comment #5
danielb commentedyeah OK I see the problem now, I'll need to check the table as well as the primary field.
Comment #6
danielb commentedComment #7
danielb commentedThis should no longer be a problem in future versions.