fix default select when from is used

two reasons:

1) I've created a temporary table filled with data from another table, and I'm iterating over it. So I want to get a Topic model back, but the temp table is temp_topics.

2) Using a recursive query with postgresql, it looks like:

WITH RECURSIVE t AS (SELECT * FROM topics UNION ALL <some more stuff>) SELECT * from t.

I want to get a Topic model back, but from the query's perspective the table's name is t (it *has* to be aliased).