title: mysql select query in java
body: <p>I'm new to connecting java with a mysql database. What's wrong with my query here:</p>
  
  <pre><code>PreparedStatement statement = conn.prepareStatement("SELECT * FROM q_table, choices, answers  WHERE q_table.QID='" + number_input + "' AND choices.CID='" + number_input + "' AND answers.AID='" + number_input + "'");
  </code></pre>