Removed support for deprecated `counter_sql`
Merge pull request #11241 from neerajdotname/deprecated-counter-sql

Removed support for deprecated `counter_sql`
Add CHANGELOG enty for #11235
Correctly handle relations as values in where() for polymorphic associations.