Query Error

undefined method `<=' for nil:NilClass