I'm trying to grab information for a user and displaying it on their profile, but this isn't working. what am I doing wrong? and how i can correct it?

after I clicking on the user link:
PHP Code:
<a href="profiles.php?=<?php echo $rows['id']?>"> <?php echo $rows['firstname'], ' '$rows['lastname']?> <br /><br /> </a>

I can't fetch the data

PHP Code:
<?php
session_start
();
include 
'core/connect.php';
    
    
$id $_GET['id'];

    
$query dbConnect()->prepare("SELECT `id`, `firstname`, `lastname`, `notes` FROM `loaders` WHERE id = :id");

    foreach(
$query->fetchAll(PDO::FETCH_ASSOC) AS $rows){
        echo 
$rows['notes'];
    }
    
?>