FUNCTION diana_vmcom.ss81_pl_calculateProductVariantPriceForUser does not exist
SELECT `ot`.`iProductVariant`, `ot`.`iQuantity`, ss81_pl_calculateProductVariantPriceForUser( NULL, `ot`.`iProductVariant`, 1 ) AS `fPrice`, `ot`.`iFotoliaPhoto`, `p`.`iProduct`, IFNULL( `pv`.`fPriceTimeValue`, `p`.`fPriceTimeValue` ) AS `fPriceTimeValue`, `p`.`iPriceTimeFrom`, `p`.`iPriceTimeTo`, `p`.`iPriceTimeMaxCount`, `p`.`iPriceTimeCount`, IF( `vpvn`.`sName` IS NULL, `p`.`sName`, CONCAT( `p`.`sName`, ', ', `vpvn`.`sName` ) ) AS `sName`, IFNULL( `pv`.`sWeight`, `p`.`sWeight` ) AS `sWeight`, `p`.`iFotolia`, `v`.`fVatValue` AS `fVat`, `pa`.`sText` AS `sAvailability`, `iFile`, `p`.`iProducer` FROM `ss81_orders_temp` AS `ot` LEFT JOIN `ss81_pl_products_variants` AS `pv` USING( `iProductVariant` ) LEFT JOIN `ss81_pl_products` AS `p` USING( `iProduct` ) LEFT JOIN `ss81_vat` AS `v` ON( IFNULL( `pv`.`iVat`, `p`.`iVat` ) = `v`.`iVat` ) LEFT JOIN (SELECT `products_variants`.`TiAvailable` AS `iAvailable`, `iProductVariant` FROM `ss81_pl_products_variants` AS `products_variants` -- INNER JOIN `ss81_pl_products` AS `products` USING( `iProduct` ) INNER JOIN `ss81_orders_temp` AS `orders_temp` USING( `iProductVariant` ) WHERE `orders_temp`.`iCustomer` = '1576052571908' AND `products_variants`.`iStatus` >= 1) AS `pag` USING( `iProductVariant` ) LEFT JOIN `ss81_pl_products_available` AS `pa` USING( `iAvailable` ) LEFT JOIN `ss81_pl_v_products_variants_names` AS `vpvn` USING( `iProductVariant` ) WHERE `iCustomer` = '1576052571908' AND `pv`.`iStatus` >= 1 AND `p`.`iStatus` >= 1