kohana/database — pull request #35 by Evulse (2012-05-21 05:06:31+00:00)
Title: 3.3/develop

Currently the DB Module uses the $db->quote_identifier(reset($column)) in the query builder when compiling the where columns. However this function should only be used on the alias and not the table name as it can not handle quoting used on columns.

$db->quote_column(reset($column)) works as expected. The variable that caused the issue is

array('CONCAT("column1", "column2")', 'alias')