SELECT Query: SELECT affiliate_id FROM wpdg_uap_referrals WHERE refferal_wp_uid = 0
object(stdClass)#7552 (1) { ["affiliate_id"]=> string(1) "3" } SELECT Query: SELECT id FROM wpdg_uap_affiliates WHERE uid = 0
NULL INSERT Query: INSERT INTO wpdg_uap_mlm_relations (affiliate_id, parent_affiliate_id) VALUES (0, 3)
MLM relation successfully updated.