JOIN statement no longer works under MySQL v5
I have the following query, which worked fine under v4.1 of MySQL...
SELECT m.*,g.*,p.*
FROM ibf_members m,ibf_groups g
LEFT JOIN ibf_admin_permission_rows p ON ( m.id=p.row_member_id )
WHERE m.id=1 AND g.g_id=m.mgroup
But now it appears as though my server provider has upgraded to v5, and now I get the following error, when I run the query...
SQL error: Unknown column 'm.id' in 'on clause'
What has changed between v4.1 & v5, and how can I correct the problem?
Subject
Written By
Posted
JOIN statement no longer works under MySQL v5
October 25, 2008 05:54AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.