View Single Post
  #9 (permalink)  
Old 07-10-08, 01:44 AM
dustin56 dustin56 is offline
Newbie Coder
 
Join Date: Jun 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by ordique View Post
MySQL error: Column 'NCR_No' in where clause is ambiguous
I believe this indicates that the field 'NCR_No' exists in more than one of the specified tables. You need to specify which table must be used in matching the where clause, or if this field must match in all tables which contain it, you have to specify that.
Like this
Code:
WHERE p.NCR_No='$ncrno'
or this
Code:
WHERE p.NCR_No='$ncrno' AND pl.NCR_No='$ncrno'
Reply With Quote