adjusted filter-by-parent logic: if filtering field is multiple-value foreign key field, special sql WHERE clause will be used