fixed ->wherePrimary() on backjoined selection