Fix for issue #310.

Additionnal query conditions are now added to the main query (in EloquentStatementRepository::addParameters) when related_activities is on.