executeS(' SELECT c.`id_customer`, rp.`id_sponsor` FROM '. _DB_PREFIX_ .'customer c LEFT JOIN '. _DB_PREFIX_ .'referralprogram rp ON (rp.`id_customer` = c.`id_customer` AND rp.`id_sponsor` = ' . (int) $id_sponsor . ') WHERE rp.`id_customer` IS NOT NULL -- AND c.`id_customer` < 114324 AND rp.`id_customer` NOT IN ( SELECT amtu.`id_customer` FROM '. _DB_PREFIX_ .'ant_marketing_tracking_users amtu -- WHERE amtu.`id_tracking` = '.(int)$tracking->id_tracking.' WHERE 1 ) '); echo "
";var_dump($customers);echo "";die(); /*foreach ($customers as $customer) { $tracking->addSubscribe((int)$customer['id_customer']); }*/ } exit;