What is the significance of removing the comma after wochentag in the SQL query?

The significance of removing the comma after "wochentag" in the SQL query is that it fixes a syntax error. In SQL queries, columns should be separated by commas, but the last column should not have a trailing comma. Removing the comma after "wochentag" ensures that the query will execute successfully.

$query = "SELECT vorname, nachname wochentag FROM mitarbeiter";