Index: branches/5.2.x/units/articles/articles_config.php
===================================================================
diff -u -r15562 -r15760
--- branches/5.2.x/units/articles/articles_config.php	(.../articles_config.php)	(revision 15562)
+++ branches/5.2.x/units/articles/articles_config.php	(.../articles_config.php)	(revision 15760)
@@ -1,6 +1,6 @@
 <?php
 /**
-* @version	$Id: articles_config.php 15562 2012-10-09 16:04:51Z alex $
+* @version	$Id: articles_config.php 15760 2013-05-16 15:48:57Z alex $
 * @package	In-News
 * @copyright	Copyright (C) 1997 - 2009 Intechnic. All rights reserved.
 * @license      GNU/GPL
@@ -356,7 +356,7 @@
 															LEFT JOIN '.TABLE_PREFIX.'%3$sCategoryItems ON '.TABLE_PREFIX.'%3$sCategoryItems.ItemResourceId = %1$s.ResourceId
 															LEFT JOIN '.TABLE_PREFIX.'Categories ON '.TABLE_PREFIX.'Categories.CategoryId = '.TABLE_PREFIX.'%3$sCategoryItems.CategoryId
 															LEFT JOIN '.TABLE_PREFIX.'%3$sCatalogImages img ON img.ResourceId = %1$s.ResourceId AND img.DefaultImg = 1
-															LEFT JOIN '.TABLE_PREFIX.'CategoryPermissionsCache perm ON perm.CategoryId = '.TABLE_PREFIX.'%3$sCategoryItems.CategoryId
+															{PERM_JOIN}
 															LEFT JOIN '.TABLE_PREFIX.'Users u ON %1$s.CreatedById = u.PortalUserId
 															LEFT JOIN '.TABLE_PREFIX.'%3$sNewsCustomData cust ON %1$s.ResourceId = cust.ResourceId',
 											), // key - special, value - list select sql