Dynamic Finders Return nil


Using sqlite3, rails 3.2.2, ruby 1.9.3p125 (on windows XP)

Having the record in the db:

Shop.find(123) - returns the shop Shop.where(:id => 123) - returns the shop but Shop.find_by_id(123) returns nil same for find_by_name, etc.

What does the log show for the sql used when you do those?