View Single Post
  #7 (permalink)  
Old 06-25-2007, 02:13 PM
computergenius computergenius is offline
WebProWorld Veteran
 

Join Date: Jul 2003
Location: Spain
Posts: 331
computergenius RepRank 1
Default Re: Possible MySQL Doozie...

Quote:
Originally Posted by jtracking View Post
The error states: Column 'sales_id' in field list is ambiguous
MySQL doesn't know which table you are referring to, because sales_id is obviously in more than one table.

You need to change it to SELECT thistable.sales_id - replacing thistable with the relevant tablename - you have done this in other places in your SQL.
__________________
Pete Clark
Sunny Southern Spain - http://hotcosta.com/Andalucia.Spain
Reply With Quote