in reply to
Re^2: Creating a csv from two database tables
in thread Creating a csv from two database tables
As I tried to figure out your output format, it looks like you don't need
the first db table (param)?
All output refers only to the second table (object).
So I wonder, for what do need the first table regarding your output?