What is this error all about? I’m running a standard query like so:
time_range = (1.month.ago.beginning_of_month..1.month.ago.end_of_month)
Feed.find(:all, :conditions => ['created_at = ? AND id not in (?)', time_range, [1,2,3]]).count
Any ideas? Thanks
I had this problem and the solution was to add “to_date” so that it iterates over the days, like so: