Java MySQLSyntaxError
<p>I'm building a program around a MySQL database using JDBC Driver.
I'm stuck at this point.</p>

<pre><code>loginWindow lW = new loginWindow();
try {
   PreparedStatement pst = connHandler.conn.prepareStatement("SELECT * FROM   '" + lW.fieldUname.getText() + "''");             


   ResultSet rs = pst.executeQuery();
   table.setModel(DbUtils.resultSetToTableModel(rs));

    } catch (SQLException e) {

      e.printStackTrace();
}   
</code></pre>

<p>I have a connHandler class which is holding the connection method and the Connection (named: "conn") variable. I assume I have some problems with my query. </p>

<p>The error that I'm getting:</p>

<pre><code>com.mysql.jdbc.exceptions.jdbc4.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 ''''' at line 1
</code></pre>

<p>I would really appreciate any help or advice.</p>