PHP PDO Query
A prepared statement keeps user input out of the SQL text, which blocks injection.
Example
<?php
$stmt = $pdo->prepare("SELECT * FROM posts WHERE id = ?");
$stmt->execute([5]);
Your task
Prepare a query for a user by id, execute it with [1] and fetch all rows.