Allow queries to be supplied as tables

Problem described here: http://laravel.io/forum/02-04-2014-select-from-query

This update allows a query to be passed through as the table to query from, in the format of:
DB::table('alias', $query)