Hello Markus,
ERROR: column "foo.z_zamowien" must appear in the GROUP BY clause or be used in an aggregate function
-- Best regards, Maciej mailto:piechcio(at)isb(dot)com(dot)pl