[Runtime] Polish a Sqlite table selection statement.

The name 'registered_event' is not explicitly declared which table it
comes from in previous SQL statement.
This PR explicitly clarifies column of which table is selected.