laravel/framework — pull request #3678 by monorigabor (2014-02-24 23:18:03+00:00)
Title: Table prefix was missing in BelongsToMany@getRelationCountQueryForSelfJoin

Table prefix was missing in the SQL query generated by Eloquent ORM, as discussed here : https://github.com/laravel/laravel/issues/2672