View Single Post
Old March 18th, 2008, 3:58 AM   #1 (permalink)
sascoms
Registered User
Seasoned Poster
 
Joined in Sep 2003
51 posts
Gave thanks: 4
Thanked 5 times
an sql error on mysql5 after transfer from mysql4

hello,
i have an sql sentence which was working on mysql 4.
SELECT p.*, e.title, u.user FROM photos p, records e
LEFT JOIN users u ON u.user=p.user
WHERE p.approved=1 AND e.id=p.id

but this sql sentence now gives error on mysql 5.
it says: Unknown column 'p.user' in 'on clause'
however there is a column named user on p table.

does anybody have any idea what might be causing the this?
thanks in advance
__________________
server: pass40
sascoms is offline   Reply With Quote