Page Error: undefined method `value' for nil:NilClass

RSP BACKTRACE

Handled by : Site Error Handler
NoMethodError: undefined method `value' for nil:NilClass
Stack:
  1. /var/data/www/sites/live.c21bowman.com/content/agents/local/search/residential.rb:204:in `block in sql'
  2. /var/data/www/sites/live.c21bowman.com/content/agents/local/search/residential.rb:203:in `each'
  3. /var/data/www/sites/live.c21bowman.com/content/agents/local/search/residential.rb:203:in `sql'
  4. cityPages.rhtml:147:in `render'
  5. /usr/local/lib/ruby/2.0/rsp/platform/modruby.rb:201:in `eval'
  6. /usr/local/lib/ruby/2.0/rsp/platform/modruby.rb:201:in `rhtml'
  7. /usr/local/lib/ruby/2.0/rsp/platform/modruby.rb:289:in `render'
  8. /usr/local/lib/ruby/2.0/rsp/renderable.rb:89:in `render'
  9. /var/data/www/sites/live.c21bowman.com/content/listings/residential.rsp:52:in `block in cityPages'
 10. /usr/local/lib/ruby/2.0/rsp/rex/template.rb:119:in `call'
 11. /usr/local/lib/ruby/2.0/rsp/rex/template.rb:119:in `content'
 12. /var/data/www/sites/live.c21bowman.com/content//listings/common/templates/index.rhtml:45:in `render'
 13. /usr/local/lib/ruby/2.0/rsp/platform/modruby.rb:201:in `eval'
 14. /usr/local/lib/ruby/2.0/rsp/platform/modruby.rb:201:in `rhtml'
 15. /usr/local/lib/ruby/2.0/rsp/platform/modruby.rb:289:in `render'
 16. /usr/local/lib/ruby/2.0/rsp/rex/template.rb:114:in `render'
 17. /var/data/www/sites/live.c21bowman.com/content/listings/residential.rsp:51:in `cityPages'
 18. /usr/local/lib/ruby/2.0/rsp/controller.rb:105:in `handleRequest'
 19. /usr/local/lib/ruby/2.0/rsp/controller.rb:48:in `initialize'
 20. /usr/local/lib/ruby/2.0/rsp/rex/controller.rb:25:in `initialize'
 21. /var/data/www/sites/live.c21bowman.com/content/listings/residential.rsp:24:in `initialize'
 22. (eval):33:in `new'
 23. (eval):33:in `execController'
 24. /usr/local/lib/ruby/2.0/rsp/core.rb:429:in `runCode'
 25. /usr/local/lib/ruby/2.0/rsp/core.rb:396:in `run'
 26. /usr/local/lib/ruby/2.0/rsp/core.rb:258:in `handle'
 27. /usr/local/lib/ruby/2.0/rsp/core.rb:579:in `handle'
 28. /usr/local/lib/ruby/2.0/rsp/core.rb:885:in `handle'
 29. /usr/local/lib/ruby/2.0/rsp/platform/modruby.rb:20:in `handle'