DELETE FROM reporting_shard_2.user_partner_account_map where user_id in (SELECT id FROM user) and partner_account_id in (SELECT id FROM partner_account where user_id in (SELECT id FROM user)); ты про это?
Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column. To disable safe mode, toggle the option in Preferences -> SQL Editor and reconnect. Возможно это не связано с амим запросом