>Hmmm, this is the easiest command. You're saying, that removing the orphans didn't fix the problem?
>
>I would probably understand this error if you selected * instead of just one field.
The situation was related to the fact that the master primary key can appear more than once in the SQL result. For that reason, the error message came in.