18.04.2016, 12:01
The errors you're getting are associated to a MySQL query. The function above writes to a local file, so please show us the query instead.
What you have to do to get rid of the error is to first check if the columns are created.
What you have to do to get rid of the error is to first check if the columns are created.