Hi Bob,
I am trying to run the following sql in a DB multi record loader:
If I list the fields like 'art'.'id','art'.'title', etc. I get another error message stating
So how can I solve the issue above?
thanks,
adop
I am trying to run the following sql in a DB multi record loader:
SELECT
cs_content.id,
cs_content.title,
cs_categories.title
FROM
cs_content
INNER JOIN cs_categories ON (cs_content.catid = cs_categories.id)
but I keep getting the follwing error message:JDatabaseMySQLi::query: 1052 - Column 'id' in field list is ambiguous SQL=SELECT `id`, `title`, `catid`, `cat`.`title` AS `cat.title` FROM `cs_content` AS `art` INNER JOIN `cs_categories` AS `cat` ON art.catid=cat.id
The issue is that field id is not prepended with the Model ID and same issue with title and catid.If I list the fields like 'art'.'id','art'.'title', etc. I get another error message stating
Unknown column 'art.id' in 'field list'
So how can I solve the issue above?
thanks,
adop