close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
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 Miguel | 122 views | 2 replies

Miguel

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:

SELECT
abc_article_cat.*,
tabla2.id 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 = tabla2.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?

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

Content

rating

Layout

rating

Ease of use

rating

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