Add table_prefix to registered_users query