Why is it recommended to use proper Join syntax instead of comma-lists when performing SQL queries in PHP?

It is recommended to use proper Join syntax instead of comma-lists when performing SQL queries in PHP because it helps improve the readability, maintainability, and performance of the query. Using Join syntax explicitly defines the relationship between tables and avoids ambiguous results that can occur with comma-lists. Additionally, Join syntax allows for different types of joins such as INNER JOIN, LEFT JOIN, and RIGHT JOIN, providing more flexibility in querying data.

$query = "SELECT column1, column2
          FROM table1
          INNER JOIN table2 ON table1.id = table2.id";