Using $stmt = $dbconn->prepare($sql);
$stmt->execute();
Fetch only the first row from the results
$result= $stmt->fetch();

SQLSTATE[HY000] [1045] Access denied for user 'Manas9'@'localhost' (using password: YES)