getAssetRules method queries optimized

Previous query is consisted with a join operation. In the changed query, first get the lft and rgt values related to the asset id or to the asset name. Then Another query is executed to get the rules.
when accessing by PK don't need to group by