how to do two sql queries in 1

I have this right now:

 var userLogin = "select * from users where username = ?";, function(err, conn) {
    if (err) return console.log(err);
    conn.query(userLogin, [inputUsername], function(err, rows) {
        if (err) {

        //if the query returns results that are > 0
        if (rows.length > 0) {
            alert("There is an account already registered with this email account")
        conn.close(function() {
            // console.log("closed the function /login");

however, what I am trying to do is check if either the username or the email address exist already. If so, then alert. But that requires me to do two sql queries in one. Is this possible with the current setup I have?

I guess i would need something like:

select * from users where username && email = ?


You would simply check that the input doesn’t exist in either column SELECT COUNT(*) FROM users where username = $inputUserName OR email = $inputUserName