Expand order(:symbol) to "table".symbol to prevent broken queries on PG.
Fixes #9275.

When `#order` is called with a Symbol this patch will prepend the quoted_table_name.
Before the postgresql adapter failed to build queries containg a join and an order
with a symbol.

This expansion happens for all adapters.
Merge pull request #9414 from senny/9275_order_with_symbol_and_join

Expand order(:symbol) to "table".symbol to prevent broken queries on PG.