Jump to content

not sure why I am getting an MySQL error


webguync

Recommended Posts

I am getting a MySQL error telling me the field is unknown when I know it is there.

 

MySQL Error: Unknown column 'tbl_log.user_id' in 'where clause'

 

WHERE tbl_roster.user_id = tbl_log.user_id 

 

I have another table with the exact same MySQL structure and when I SQL that it displays fine? Any ideas why it would do this?

 

 

yea I do disagree

CREATE TABLE `log_March2010` (
  `log_id` int(11) NOT NULL auto_increment,
  `user_id` int(11) default NULL,
  `section` int(11) default NULL,
  `date` int(11) default NULL,
  `attempt` int(11) default NULL,
  PRIMARY KEY  (`log_id`)
) ENGINE=MyISAM AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 AUTO_INCREMENT=15 ;

It means that the column 'user_id' doesn't exist in the table 'tbl_log'.  If you disagree then could you please post the structure of that table.  (describe tbl_log;)

 

you please post the structure of that table.  (describe tbl_log;)

NOT:

 

CREATE TABLE `log_March2010` (

 

that seems to be another table??????????

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.