$query ="SELECT money
FROM bot
WHERE id_vk = 123"
$query ="SELECT money FROM bot WHERE id_vk = 123";
$money = $pdo->query($query)->fetchColumn();
$query ="SELECT money FROM bot WHERE id_vk = ?";
$stmt = $pdo->prepare($query);
$stmt->execute([$id_vk]);
$money = $stmt->fetchColumn();