|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Another Join Problem
From: Victor Subervi (victorsubervi
gmail.com)
Date: Fri Oct 02 2009 - 10:53:38 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi;
I get the following error:
*SQL query:*
SELECT ID, Item
FROM products
JOIN categories ON categories.ID = products.Category
LIMIT 0 , 30;
*MySQL said:*
#1052 - Column 'ID' in field list is ambiguous
Please note the error is about ambiguity. "products" has an ID field and so
does "categories". If I run the statement taking out the "ID" from the
select, it runs. So, where is the ambiguity??
TIA,
V
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]