Hi @Henric Åkesson
Perhaps you will need to debug the contents of $row and $field.
What is the data for both when you see the error?
Tip: Use a simple debug snippet like this:
<?php
echo '<pre>';
print_r( $field );
echo '</pre>';
echo '<pre>';
print_r( $row );
echo '</pre>';
?>