public static function findGroupPermissions( $ids = [], $config = [] ) {

		$permissionTable	= CoreTables::getTableName( CoreTables::TABLE_PERMISSION );
		$hierarchyTable		= CoreTables::getTableName( CoreTables::TABLE_MODEL_HIERARCHY );
		$idStr				= join( ",", $ids );

		return Permission::find()->leftJoin( $hierarchyTable, "`$permissionTable`.`id` = `$hierarchyTable`.`childId`" )
			->where( "`$hierarchyTable`.`parentType` = 'permission' AND `$hierarchyTable`.`parentId` IN ($idStr)" )->all();
	}