com.microsoft.sqlserver.jdbc.SQLServerException: 'upwd' 附近有语法错误。

这个是咋回事啊?求大神解下惑

jba.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
String uuser=jta.getText();
String upwd=pwd.getText();
userdao udao=new userdao();
** int n=udao.getmarker(uuser, upwd);**//提示我这行错误
if(n!=-1) {
if(n==0) {
JOptionPane.showMessageDialog(null, "欢迎管理大大!!!!!!");
}else {
JOptionPane.showMessageDialog(null, "您好,欢迎您,尊敬的用户");
}
Login.this.dispose();
new test();
}else {
JOptionPane.showMessageDialog(null, "账号或密码错误");
}
}
});

con=DBHelper.getcon();
        String sql="select * from tb_user where uuser="+uuser+"and upwd="+upwd;
        ps=con.prepareStatement(sql);
        rs=ps.executeQuery();//还有这里也提示我错误

String sql="select * from tb_user where uuser='"+uuser+"' and upwd='"+upwd +"'";
这样写看看,字符串要有引号
and前面有个空格
再不行,检查你的字段是不是叫做upwd