Ok I am having trouble getting a query accepting an AND statement with a literal 'string' in it. I have no trouble with either condition on its own but I cant get to an AND statement. Any good examples?
try (ResultSet result = db1.executeQuery("SELECT playerID FROM Plowner WHERE ID = ' " +areaID+ " ' AND group = 'Red' ") ){
If I cut down to just the Where and one of the conditions it works fine.