close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Search and joined table of the same kind error

Thread began 12/14/2013 3:30 pm by Miguel | Last modified 12/16/2013 11:18 am by Jason Byrnes | 156 views | 2 replies |


Search and joined table of the same kind error

Hello Community

Im making a new CMS and this time im allowing categories and pages to have parents of them self due to multilingual, i used datassist to create the insert update results etc..., i had to change the query because it was not working due to the join been the same table, for example the main language is English after inserting i have an extra button to insert the same page translated to Spanish, this will add a new page and it has a column for the parents id example of the query:

abc_article_cat.*, AS cat2,
tabla2.Name AS name2,
tabla2.Parent_id AS parentid2,
tabla2.Alias AS alias2,
tabla2.Thumbnail AS thumb2
FROM abc_article_cat
LEFT OUTER JOIN abc_article_cat tabla2
ON abc_article_cat.Parent_id =

The data displays correct until i try to use the search im getting this message it changes depending on the field but its basically the same msg: Column 'Lang' in where clause is ambiguous, is there any way around to get the search working when using a join on the same table, i also notice even that the original query has an alias for the names, inside the search wizard it doesn't show that just grabs the table twice?

Sign in to reply to this post


Never mind after several test it seems we have to add the alias of tables by hand example aliasname.columnname

//comparison list additions

Sign in to reply to this post

Jason ByrnesWebAssist

Yes, data assist search will only recognize the column names from your table, not aliases you create in the SQL.

it is a good practice to avoid duplicate column names in your table to prevent this problem.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...