dmongeau/Kate — pull request #1 by nitrix (2012-08-13 19:14:02+00:00)
Title: Fixed a race condition when "not X"=>Array

I was trying to do:
$items = $Model->getItems(array('field1'=>$value1, 'not field2' => Array(0)));

It seems like you can't use an Array() as a value when a "not" operator is applied on field2.
The error comes from a race condition where the value being an array is being evaluated before the "not" operator check, resulting in an Internal Error.