FUNCTION product.IF does not exist
SELECT `product`.productID, `product`.IF(LENGTH(`name_pl`), `name_pl`, `name_ru`) AS name, Price, in_stock, slug, `category`.categoryID as categoryID, product_code, `product`.`discount1`, `product`.`discount2`, `product`.`discount3` from SC_products as `product` LEFT JOIN SC_category_product as `category` ON (`product`.productID=`category`.productID) WHERE `category`.categoryID>1 and Price>0 and enabled=1 AND (`product`.`categoryID` >686 AND `product`.`categoryID` <700 AND `product`.`categoryID` <>701 AND `product`.`categoryID` <>706 AND `product`.`categoryID` <>707 AND `product`.`categoryID` >721 AND `product`.`categoryID` <726) order by CategoryID, name;