Index: branches/5.2.x/units/products/products_tag_processor.php =================================================================== diff -u -N -r14957 -r15009 --- branches/5.2.x/units/products/products_tag_processor.php (.../products_tag_processor.php) (revision 14957) +++ branches/5.2.x/units/products/products_tag_processor.php (.../products_tag_processor.php) (revision 15009) @@ -1,6 +1,6 @@ Application->GetVar("m_cat_id"); + FROM " . TABLE_PREFIX . "Categories + WHERE CategoryId=" . $this->Application->GetVar("m_cat_id"); return $this->Conn->GetOne($sql); } @@ -356,7 +356,7 @@ } $sql = 'SELECT ValueList - FROM ' . TABLE_PREFIX . 'ConfigurationValues + FROM ' . TABLE_PREFIX . 'SystemSettings WHERE VariableName = "product_OrderProductsBy"'; $field_list_plain = $this->Conn->GetOne($sql);