Kom ihåg mig?

sql inner join problem

 
Ämnesverktyg Visningsalternativ
Oläst 2008-10-22, 19:47 #1
filipbjerne filipbjerne är inte uppkopplad
Nykomling
 
Reg.datum: Jul 2008
Inlägg: 23
filipbjerne filipbjerne är inte uppkopplad
Nykomling
 
Reg.datum: Jul 2008
Inlägg: 23
vad kan felet vara??

Fick felmeddelande:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[MySQL][ODBC 3.51 Driver][mysqld-5.0.37-community-nt]Unknown column 'tu.userID' in 'on clause'



Kod:
SELECT 

tu.userID, tu.userName, tu.userInvitedBy, tu.userPicture, tu.userAddressCity, tue.userEducationSchool, tue.userEducationSchoolAlignment, tuw.userWorkEmployer, tuw.userWorkPosition 

FROM 

tableUser tu, 
tableUserEducation tue, 
tableUserWork tuw 

INNER JOIN 
tableUserEducation tue2 ON tu.userID = tue2.userEducationToID 

INNER JOIN 
tableUserWork tuw2 ON tu.userID = tuw2.userWorkToID 

WHERE 

tu.userName LIKE '%" & functionInjection(Request.Querystring("searchField")) & "%' AND 
tu.userAddressCity LIKE '%" & functionInjection(Request.Querystring("usercity")) & "%' AND 
tu.userAddressCountry LIKE '%" & functionInjection(Request.Querystring("usercountry")) & "%' AND 
tu.userWebsite LIKE '%" & functionInjection(Request.Querystring("userWebsite")) & "%' AND 
tue.userEducationSchool LIKE '%" & functionInjection(Request.Querystring("userEducationSchool")) & "%' AND 
tue.userEducationSchoolAlignment LIKE '%" & functionInjection(Request.Querystring("userEducationSchoolAlignment")) & "%' AND 
tuw.userWorkEmployer LIKE '%" & functionInjection(Request.Querystring("userWorkEmployer")) & "%' AND 
tuw.userWorkPosition LIKE '%" & functionInjection(Request.Querystring("userWorkPosition")) & "%' " & stringSQL & " AND 
tu.userAccept = 1 

GROUP BY 

tu.userID 

ORDER BY 

tu.userName ASC, 
tu.userOnline ASC, 
tu.userLoginDate DESC
filipbjerne är inte uppkopplad   Svara med citatSvara med citat
Svara


Aktiva användare som för närvarande tittar på det här ämnet: 1 (0 medlemmar och 1 gäster)
 
Ämnesverktyg
Visningsalternativ

Regler för att posta
Du får inte posta nya ämnen
Du får inte posta svar
Du får inte posta bifogade filer
Du får inte redigera dina inlägg

BB-kod är
Smilies är
[IMG]-kod är
HTML-kod är av

Forumhopp


Alla tider är GMT +2. Klockan är nu 17:04.

Programvara från: vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Svensk översättning av: Anders Pettersson
 
Copyright © 2017