Quote ranked column name for SQL queries

In PostgresQL databses, a ranked column named "order" will cause
exceptions (PG::Error: ERROR:  syntax error at or near "order") unless
the column name is quoted.