$sale) { $products = $sale->getProducts(); foreach ($products as $p) { Db::getInstance()->Execute(' INSERT IGNORE INTO '._DB_PREFIX_.'product_ps_cache (id_product,id_sale) VALUES ('.(int)$p.','.(int)$sale->id_privatesales.') '); } } exit;