src/PicORM/InternalQueryHelper.php
public function buildWhereFromArray(array $where)
    {
        if (count($where) == 0) {
            return $this->_whereValues;
        }

        foreach ($where as $fieldName => $oneCritera) {
            $val      = '?';
            $operator = "=";
            if (is_array($oneCritera)) {
                // using raw mysql
                if (count($oneCritera) == 1 && isset($oneCritera[0])) {
                    $val = $oneCritera[0];
                } else {
                    // custom operator
                    if (isset($oneCritera['operator'])) {
                        $operator = $oneCritera['operator'];
                    }
                    // custom value with prepared data or raw mysql if value is in an array
                    if (isset($oneCritera['value'])) {
                        if (is_array($oneCritera['value']) && isset($oneCritera['value'][0])) {
                            $val = $oneCritera['value'][0];
                        } else {
                            $this->_whereValues[] = $oneCritera['value'];
                        }
                    }
                }
            } else {
                $this->_whereValues[] = $oneCritera;
            }
            $this->where($fieldName, $operator, $val);
        }

        return $this->_whereValues;
    }
public function buildWhereFromArray(array $where)
    {
        if (count($where) == 0) {
            return $this->_whereValues;
        }

        foreach ($where as $fieldName => $oneCritera) {
            $val      = '?';
            $operator = "=";
            if (is_array($oneCritera)) {
                // using raw mysql
                if (count($oneCritera) == 1 && isset($oneCritera[0])) {
                    $val = $oneCritera[0];
                } else {
                    // custom operator
                    if (isset($oneCritera['operator'])) {
                        $operator = $oneCritera['operator'];
                    }
                    // custom value with prepared data or raw mysql if value is in an array
                    if (isset($oneCritera['value'])) {
                        if (is_array($oneCritera['value']) && isset($oneCritera['value'][0])) {
                            $val = $oneCritera['value'][0];
                        } else {
                            $this->_whereValues[] = $oneCritera['value'];
                        }
                    }
                }
            } else {
                $this->_whereValues[] = $oneCritera;
            }
            $this->where($fieldName, $operator, $val);
        }

        return $this->_whereValues;
    }
Build where condition from find() $where params

@param array $where - associative array with where needed values

@return $this