extended fetchResultSetForSelect method to allow objects and arrays for
the where part