There appears to be a bug with the SQL generated for exporting ticket data in so far as two columns are labelled as "merged". This issue leads to formatting problems with retrieved data as an associative array to retrieve the record from database. The effect is for the values from the two columns to be merged (MySqlExecutor->getArray line 4) , but the cast information retrieved (MySqlExecutor->setupCast line 1) for the query has two columns. This causes problems when MySqlExecutor->_cast is applied to the retrieved record as typing information is misaligned after the 'merged' column.
It appears the problem might be caused by definition of MergedField->addToQuery where a field labelled "merged" is added as well as being used to annotate the query.