title: Error: You have an error in your SQL syntax; near ')' at line 1 check the manual that corresponds to your MariaDB server version
body: <p>im doing a authentication login in react js, but gives me an error, i think my sql query its current. Can't understand where is the error</p>
  <pre><code>
     db.query(
         &quot;SELECT * FROM os_accounts WHERE Username = ? AND Password ?&quot;,
         [username,password],
         (err, result) =&gt;{
  
             if(err){console.log(err);
                 res.send({err: err})
             }
  
  
                 if (result){
                     res.send(result)
                 }else{
                     res.send({message: &quot;Wrong username/password !&quot;});
                 }
             
         }
     );
  })
  </code></pre>
  <p>This is the erro that gives me</p>
  <pre><code>sqlMessage: &quot;You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to 
  use near ''asd'' at line 1&quot;,
  </code></pre>