PHP PDO HATA: 42000

Class tarafı hata bilgileri
Hatalı SQL: SELECT avg(rate) as ortalama, count(*) as adet FROM yildiz where id_post=
Hatalı Function: execute
Hatalı Dosya: /home/zagnosturcom/domains/zagnostur.com/public_html/dbclass.php
Hatalı Satır: 192

Dosya tarafı hata bilgileri
Hatalı SQL: SELECT avg(rate) as ortalama, count(*) as adet FROM yildiz where id_post=
Hatalı Function: sorgu
Hatalı Dosya: /home/zagnosturcom/domains/zagnostur.com/public_html/tur-detay-seo.php
Hatalı Satır: 8

Hata MSJ: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1