SELECT SQL_CALC_FOUND_ROWS  a.`Message_ID`, a.`User_ID`, a.`IP`, a.`UserAgent`, a.`LastUser_ID`, a.`LastIP`, a.`LastUserAgent`, a.`Priority`, a.`Parent_Message_ID`, a.`ncTitle`, a.`ncKeywords`, a.`ncDescription`, a.`ncSMO_Title`, a.`ncSMO_Description`, a.`ncSMO_Image`, sub.`Subdivision_ID`, CONCAT('', sub.`Hidden_URL`) AS `Hidden_URL`, cc.`Sub_Class_ID`, cc.`EnglishName`, a.`Checked`, a.`Created`, a.`Keyword`, a.`LastUpdated` + 0 AS LastUpdated, a.Name, a.Vendor, a.VariantName, a.Article, a.Description, a.Details, a.Price, tbl585.ShopCurrency_Name AS Currency, tbl585.ShopCurrency_ID AS Currency_id, tbl585.`Value` AS Currency_value , a.PriceMinimum, tbl586.ShopCurrency_Name AS CurrencyMinimum, tbl586.ShopCurrency_ID AS CurrencyMinimum_id, tbl586.`Value` AS CurrencyMinimum_value , tbl587.ShopUnits_Name AS Units, tbl587.ShopUnits_ID AS Units_id, tbl587.`Value` AS Units_value , a.Weight, a.StockUnits, a.TopSellingMultiplier, a.TopSellingAddition, a.VAT, a.MarketParams, a.ItemID, a.ImportSourceID, a.RateTotal, a.RateCount, a.Material, a.Structure, a.Country, a.Color, a.Size, a.RecommendedProducts, a.Hit, a.Action, a.YandexMarket, a.StockInShops, a.OldPrice, a.OptPrice, a.Categories, a.MainImage, a.VideoURL, a.Opt, a.PackageSize1, a.PackageSize2, a.PackageSize3
                       FROM (`Message252` AS a )  LEFT JOIN `Subdivision` AS sub ON sub.`Subdivision_ID` = a.`Subdivision_ID`
                  LEFT JOIN `Sub_Class` AS cc ON cc.`Sub_Class_ID` = a.`Sub_Class_ID`  LEFT JOIN `Classificator_ShopCurrency` AS tbl585 ON a.`Currency` = tbl585.ShopCurrency_ID  LEFT JOIN `Classificator_ShopCurrency` AS tbl586 ON a.`CurrencyMinimum` = tbl586.ShopCurrency_ID  LEFT JOIN `Classificator_ShopUnits` AS tbl587 ON a.`Units` = tbl587.ShopUnits_ID  
                      WHERE (1  AND a.`Parent_Message_ID` = '0'  AND (a.Categories LIKE "%,12040,%") AND sub.`Catalogue_ID` = '1'  AND a.`Checked` = 1 ) ORDER BY a.Priority DESC, a.Created DESC LIMIT 0, 24

Показано 1 - 16 из 16

Фильтр по цене