I'm trying to join some tables, using the phpMyAdmin screens from my control panel, I run the following query:
SELECT dealers.dealerName, address2Rel.reladdress2Id FROM dealers LEFT JOIN address2Rel ON dealers.dealerId = address2Rel.reldealerId LEFT JOIN addresses2.address2 ON address2Rel, addresses2 where addresses2.address2Id = address2Rel.reladdress2Id
It returns the error:
MySQL said:
select command denied to user: user@ for table address2
(I've substituted user for the actual username.)
My questions:
1) table address2 does not exist. IT was originally created, then renamed, then dropped completely. I replaced it with addresses2
2) why is the select command denied?
Simple select commands work fine. Is this a syntax error or a permission error?
Thanks,
Steve