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?

 

 

Link to comment
Share on other sites

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 ;

Link to comment
Share on other sites

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??????????

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.