Use DISTINCT to remove idiotic duplications in op_ind

Doesn't fix the problem everywhere, but it's a start
Simplified the crazy-complex SQL in op_ind

It basically duplicated an enormous SELECT statement, where a simple OR
would do.