Since you are fetching only one record, currentSelectedTeams[0] is actually returning the fixturematchday column, which it looks like is of type long and you are unable to access the attribute from it.