Powinno po prostu wyświetlić posty (proste forum), dołączyć dane o użytkowniku i posegregować hronologicznie. Jak wkleje to w pgadmin'a (postgresem chodzi) to działa, a w PDO ni bata.
$query = 'select *, "user"."id" as "uid"'
.' from "post" left join "user" on "post"."user" = "user"."id"'
.' where "topic" = '.$this->topic['id'].''
.' order by "post"."id"';
Warning: PDOStatement::execute() [function.PDOStatement-execute]: SQLSTATE[42803]: Grouping error: 7 ERROR: column "post.id" must appear in the GROUP BY clause or be used in an aggregate function in ...
--
niektóre odpowiedzi na http://www.goldenline.pl/forum/php/209745 - niestety bez rezultatów