Update eztagscloud.php

Moved the $sqlPermissionChecking[from] part of the sql request. It was raising a sql error when using tags on objects with state restriction access.
Conflicts:
	autoloads/eztagscloud.php
Use proper joins instead of multiple tables in FROM clause