fixed strange Zend SQL handling