I've this query which does not quote columns and then mysql retrieve an incorrect order. The table has timestamp column
$mapper->news->fetchAll(Sql::orderBy('timestamp', 'id')->desc()->limit($initial, $pageSize))
Resulting query:
SELECT news.* FROM news ORDER BY timestamp, id DESC LIMIT 0, 200
expected:
SELECT news.* FROM news ORDER BY `timestamp`, `id` DESC LIMIT 0, 200
Is there a way to instruct Sql to quote columns?