include('../../ayar.php');
$id=$_GET[ "id" ];
$sorgu = $db->prepare("SELECT * FROM
lgs_import20 AS t1
INNER JOIN
lgs_konu20 AS t2
ON
t1.barkod = t2.barkod
INNER JOIN
uyeler AS t3
ON
t1.std_id = t3.std_id
where id=?");

$sorgu-> execute(array($id));
$row = $sorgu->fetch(PDO::FETCH_ASSOC);
$x = $sorgu->rowCount();

echo $row['std_id'].' '.$row['barkod'];

?>


Fatal error: Uncaught PDOException: SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'id' in where clause is ambiguous in /home/xxx/public_html/admin/xxx/xxx/xxx.php:16 Stack trace: #0 /home/xxx/public_html/admin/xxx/kxxx/xxx.php(16): PDOStatement->execute(Array) #1 {main} thrown in /home/xxx.com/public_html/admin/xxx/xxx/xxx.php on line 16

Bu şekilde bir sonuç aldım.