Fixed issue using whereHas with HasManyThrough Relationship
Merge pull request #3770 from crhayes/4.1

Fixed issue using whereHas with HasManyThrough Relationship