Use Querybuilder for JUpdater->findUpdates()

Changing $query to use Joomla querybuilder
Also changing the subselect to a inner join and properly process the query if $eid is passed as a single integer