laravel/framework — pull request #732 by astoltz (2013-03-27 21:03:33+00:00)
Title: Update Builder.php

In MySQL, when you run a count(*) against a query with a "group by" and the result is "0", MySQL returns an empty record set rather than "0". In the existing code, it's assumed there will always be a result to count(*), causing $results[0] to be an undefined index, resulting in a fatal exception.