Fixed query 'from' issue

http://stackoverflow.com/questions/17658698/rails-arel-table-query-with-date-and-time/18403297?noredirect=1#18403297