Fixes error if table doesn't have a column "title"

This fix will use the last column defined in the values when the field type is select and the values are fetch from a content type.