Not unique table/alias

Your query contains columns which could be present with the same name in more than one table you are referencing, hence the not unique error. It’s best if you make the references explicit and/or use table aliases when joining. Try SELECT pa.ProjectID, p.Project_Title, a.Account_ID, a.Username, a.Access_Type, c.First_Name, c.Last_Name FROM Project_Assigned pa INNER JOIN Account a … Read more

Why does this SQL code give error 1066 (Not unique table/alias: ‘user’)?

You need to give the user table an alias the second time you join to it e.g. SELECT article . * , section.title, category.title, user.name, u2.name FROM article INNER JOIN section ON article.section_id = section.id INNER JOIN category ON article.category_id = category.id INNER JOIN user ON article.author_id = user.id LEFT JOIN user u2 ON article.modified_by … Read more