Bugfix SQL more than 1 enrollment / drop code

SQL error: more than one row returned by a subquery used as an
expression