laravel/framework — pull request #4201 by anlutro (2014-04-19 13:24:28+00:00)
Title: Add subselect to query builder

Had to add $bindings to selectRaw to make it work.

Perhaps long term this logic should be moved to the query grammar, and the subselect query builder instance simply added to $this->columns.