function dbConditionInt($fieldName, array $values, $notIn = false) {
to iterate over $values array foreach statement should be used, because current implementation with cursor operations makes copy of $values array which uses more memory and processing time.