in reply to generated SQL statement problem (OT)
I'll check over your script in a little more detail and see if I spot anything.
MrCromeDome
Update #2: I deleted my original update as I was totally mistaken. . . I don't use SQL aliasing much, and inadvertantly took you down a wrong path. Albannach pointed it out to me, so vote his nodes up, not mine ;)
He pointed out that you can't use column aliases at all in a WHERE clause. I know your error doesn't specifically seem to relate to an aliasing issue. . . but eliminating the alias never hurts ;) Perhaps try:
and see what happens. Hope this helps!select csGroups.ID as groupid,csUsers.UserName as username,csUsers.ID +as id,csGroups_lang.Title as grouptitle from csGroups_lang,csUsers,cs +Groups,csUsers_Groups where csGroups.ID = csGroups_lang.ID and csUser +s.ID = csUsers_Groups.UserID and csGroups.ID = csUsers_Groups.GroupID + and (csUsers.ID IN (1,2)) order by username asc limit 0,10
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: generated SQL statement problem (OT)
by AidanLee (Chaplain) on Jun 22, 2001 at 23:55 UTC |