Revert "FIX: Topic referrals by user were wrong"

This reverts commit a66f8a2bc7c9f6d7711f84612c4c5b89b302948a.
Use ActiveRecord solution for the query