After upgrading to Rails 2.3.2 I started getting this error:
Mysql::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘*)
It turns out that the ‘count’ method is broken for ‘has_many through association collection with named scope’. Here’s a link to the bug report: