Showing 1 changed files with 1 additions and 1 deletions
+1 -1
lib/DBIx/Custom/Where.pm
... ...
@@ -95,7 +95,7 @@ sub _parse {
95 95
         my $column;
96 96
         my $sql = " " . $clause || '';
97 97
         if ($self->{_tag_parse} && ($sql =~ /\s\{/)) {
98
-            my $columns = $self->dbi->query_builder->build_query($clause)->{columns};
98
+            my $columns = $self->dbi->query_builder->build_query($sql)->{columns};
99 99
             $column = $columns->[0];
100 100
         }
101 101
         else {