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.