gitlabhq/gitlabhq — comment on commit f5a16663f0b038aeb397bda19ebdefa6ad873955
File: app/models/key.rb line 26
By superbobry:

`KEY` is [reserved](http://dev.mysql.com/doc/refman/5.5/en/reserved-words.html) in MySQL, so the correct line would be:

```ruby
query = Key.where('`key` = ?', key)
```