Modified:   app/models/daily_status.rb
Get ride of error 500

ActiveRecord::StatementInvalid (PG::Error: ERROR:  operator does not exist: boolean = integer
LINE 1: ...daily_status'))) AND (daily_statuses.is_email_sent=1) ORDER ...