Consider this simple query:
SELECT * FROM table1 JOIN table2 USING(pid) WHERE pid='2' ;
I get this error:
SELECT command denied to user 'root'@'localhost' for column 'pid' in table 'table1'
When I replace USING
with ON
(and this right syntax...) the error disappears.
What is the problem?