I keep getting errors on this line of code:
pstmt = conn.prepareStatement(
"SELECT * FROM products WHERE category IN" +
"(" + "SELECT catid FROM category WHERE name= currentcat " + ")"
);
I'm guessing the problem is my parentheses. If it's not then what's wrong with my code? Thank you!