I'm not totally sure what you are trying to do.
It looks like you are inserting an array into your table?
Is there no other way to do this? I think you can better make separate fields in your table for the values you're inserting.
Besides of that, an insert query doesn't work with 'SET', you use this with an update query.
the proper syntax is
INSERT INTO table (field1, field2) VALUES (value1, value2)
I don't know if you can use it, but you have to figure out yourself how to use it in your situation then.
You can also use a select query inside the insert query, just google for how to use a subquery.