FUNCTION webcreative_34.sklep_pl_calculateProductPriceForUser does not exist
SELECT SQL_CALC_FOUND_ROWS `products`.*, `new_comments`.`iNewCommentsCount`, `products`.`fPrice` AS `fCatalogPrice`, sklep_pl_calculateProductPriceForUser( NULL, `iProduct`, 1 ) AS `fPrice`, `products_canbuy`.`iCanBuyProduct` AS `iCanBuy`, `products_canbuy`.`iVariantCount` FROM `sklep_pl_products` AS `products` LEFT JOIN `sklep_pl_products_canbuy_client` AS `products_canbuy` USING ( `iProduct` ) LEFT JOIN ( SELECT `iLink` AS `iProduct`, COUNT( `iComment` ) AS `iNewCommentsCount` FROM `sklep_pl_products_comments` WHERE `iAccepted` = 0 GROUP BY `iProduct` ) AS `new_comments` USING( `iProduct` ) WHERE 1 AND `products`.`iProduct` IN ( '290', '289', '287', '286', '285' ) AND EXISTS ( SELECT 1 FROM `sklep_pl_products_pages` AS `products_pages` WHERE `products`.`iProduct` = `products_pages`.`iProduct` AND `products_pages`.`iPage` IN ( '4', '72', '11', '35', '46', '16', '101', '99', '93', '82', '95', '96', '80', '100', '97', '98', '81', '94', '68', '33', '57', '70', '75', '64', '65', '62', '17', '5', '6', '7', '8', '9', '20', '22', '19', '21', '18', '92' ) LIMIT 1 ) AND `products`.`iStatus` >= 1 ORDER BY `iTime` DESC LIMIT 0,5