Recently, I was learning MySQL following this particular guide. https://www.mysqltutorial.org/mysql-join/
Databases and tables were set up as directed in the tutorial. While running the following code, it results in a syntax error
SELECT
m.member_id,
m.name member,
c.committee_id,
c.name committee
FROM
members m
INNER JOIN committees c
ON c.name = m.name;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ',
c.committee_id,
c.name committee
FROM
members m
INNER JOIN commi' at line 3
With a few experiments, this syntax error can be fixed by changing the alias member to something else or by adding quotes around it. However, I am unclear to how and why these solutions work. PS: The version of MySQL I am using is Ver 8.0.19.