JAVA: You have an error in your SQL syntax; check the manual that corresponds? : <p>I'm using <strong>Java + MySQL</strong> for a game server project of mine. I'm having a problem though -</p>

<pre><code>MySQLSyntaxErrorException: 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 '(connection) (`uuid`, `name`, `join_date`, `group`) VALUES (5dcd14f9 at line 1
</code></pre>

<p>The uuid should be 5dcd14f9-....-.....-...
Dots are characters that should exist there, and the dashes are just dashes.
For some reason I'm having a problem where it only gets the first part of the uuid.
Am I missing something, or is there actually something wrong with my syntax?
That's my code which is basically the error:</p>

<pre><code>PreparedStatement addPlayer = mySQL.getConnection().prepareStatement("INSERT INTO " + mySQL.getConnection() + " (uuid, name, join_date, group) VALUES (?,?,?,?)");
</code></pre>

<p>I of course cast the uuid to a string and add it as a value to the first column.
I've looked at other solutions and tried them but they didn't seem to work.</p>
