ŞizofrenikDev adlı üyeden alıntı
Select User.Id,User.Name,User.Surname,Post.Title,Post.Content From NotificationInner Join User On User.Id=Notification.PID
Inner Join Post On Post.Id=Notification.PostId
Where Notification.Id=@Id
$sth= $db->prepare("Select users.id,users.name,users.surname,post.title,post.content From notification Inner Join users On users.id=notification.pid Inner Join post On post.id=notification.postid Where notification.id=@id");
$result = $sth ->fetchAll(PDO::FETCH_ASSOC);
print_r($result);
Bu şekilde düzenledim array içi boş gösterdi. Bu son kısımda yazdığınız @id olan kısım execute içerisinde yazılan kısım dimi?