File: /bitrix/modules/sale/mysql/discount.php
Line: 142
"MySQL Query Error: SELECT DISTINCT D.ID as ID, D.LID as LID, D.LID as SITE_ID, D.PRICE_FROM as PRICE_FROM, D.PRICE_TO as PRICE_TO, D.CURRENCY as CURRENCY, D.DISCOUNT_VALUE as DISCOUNT_VALUE, D.DISCOUNT_TYPE as DISCOUNT_TYPE, D.ACTIVE as ACTIVE, D.SORT as SORT, DATE_FORMAT(D.ACTIVE_FROM, '%d.%m.%Y %H:%i:%s') as ACTIVE_FROM, DATE_FORMAT(D.ACTIVE_TO, '%d.%m.%Y %H:%i:%s') as ACTIVE_TO FROM b_sale_discount D WHERE ((((D.LID = 's1' )))) AND ((((D.ACTIVE = 'Y' )))) AND ((( D.ACTIVE_FROM IS NULL OR NOT (D.ACTIVE_FROM > '2009-11-04 17:29:51')))) AND ((( D.ACTIVE_TO IS NULL OR NOT (D.ACTIVE_TO < '2009-11-04 17:29:51')))) AND (((((D.CURRENCY = 'RUB' AND (D.PRICE_FROM <= 2499 OR D.PRICE_FROM IS NULL OR D.PRICE_FROM = 0)) OR (D.CURRENCY = 'USD' AND (D.PRICE_FROM <= 106,79 OR D.PRICE_FROM IS NULL OR D.PRICE_FROM = 0)) OR (D.CURRENCY = 'EUR' AND (D.PRICE_FROM <= 67,36 OR D.PRICE_FROM IS NULL OR D.PRICE_FROM = 0)))))) AND (((((D.CURRENCY = 'RUB' AND (D.PRICE_TO >= 2499 OR D.PRICE_TO IS NULL OR D.PRICE_TO = 0)) OR (D.CURRENCY = 'USD' AND (D.PRICE_TO >= 106,79 OR D.PRICE_TO IS NULL OR D.PRICE_TO = 0)) OR (D.CURRENCY = 'EUR' AND (D.PRICE_TO >= 67,36 OR D.PRICE_TO IS NULL OR D.PRICE_TO = 0)))))) ORDER BY D.SORT ASC [Operand should contain 1 column(s)]" |