Implement ActiveRecord::Base::where.