Fixed issue #8264: SQL error when try export to csv an participants with added attributes