Tweaking query setup for zend db adapter