Have an export file with 2 hosts assigned to different proxies.
Importing this file fails with error:
This wrong SQL is generated during import. Note "AND" in list of proxy names:
(also, I'm not sure is this ok to use % around names. why not an exact match is used?)
Here is proposed patch: