Add missing brackets in sender WHERE clause