Fixed issue using whereHas with HasManyThrough Relationship