fixes bug 1087602 - Pictures aren't selected in a join