MySQL Forums
Forum List  »  Newbie

Error 1051: Unknown table
Posted by: Exie Smith
Date: February 28, 2012 02:36PM

Hello,

I have written a simple query with a series of inner joins in MySQL Workbench. In the query, I have aliased and fully written out one of the tables I am referencing but I keep getting a 1051 Error for Unknown table.

My initial thought was spelling error but after changing several times and receiving the same error each time that leads me to believe there is a bigger issue at hand. Has anyone else seen this type of behavior?

I am on MySQL workbench 5.2.37 and the query I am writing is below with the portion that is giving me issues commented out:

use kayako_fusion;
select t.*
, cfv.*
-- , swcustomfields.*
, cfo.*
, dep.title
, ts.title
from swtickets t
inner join swdepartments dep
on t.departmentid = dep.departmentid
inner join swticketstatus ts
on t.ticketstatusid = ts.ticketstatusid
inner join swcustomfieldvalues cfv
on cfv.customfieldid = swcustomfields.customfieldid
-- inner join swcustomfields cf
-- on cf.customfieldid = cfo.customfieldid
inner join swcustomfieldoptions cfo
on cfo.customfieldid = cfol.customfieldid
inner join swcustomfieldoptionlinks cfol
on cfol.customfieldoptionlinkid = cfl.customfieldoptionlinkid
inner join swcustomfieldlinks cfl
on cfl.customfieldgroupid = customfieldgroups.customfieldgroupid

Options: ReplyQuote


Subject
Written By
Posted
Error 1051: Unknown table
February 28, 2012 02:36PM
February 28, 2012 08:29PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.