protected function getWhere(array $queryParts)
    {
        if (!isset($queryParts['where']) || empty($queryParts['where'])) {
            return null;
        }

        $where = array();
        foreach ($queryParts['where'] as $w) {
            $where[] = $this->formatWhere($w);
        }

        return 'WHERE ' . implode(' AND ', $where);
    }
protected function getWhere(array $queryParts)
    {
        if (!isset($queryParts['where']) || empty($queryParts['where'])) {
            return null;
        }

        $where = array();
        foreach ($queryParts['where'] as $w) {
            $where[] = $this->formatWhere($w);
        }

        return 'WHERE ' . implode(' AND ', $where);
    }
protected function getWhere ( array $ queryParts ) { if ( ! isset ( $ queryParts [ 'where' ] ) || empty ( $ queryParts [ 'where' ] ) ) { return null ; } $ where = array ( ) ; foreach ( $ queryParts [ 'where' ] as $ w ) { $ where [ ] = $ this -> formatWhere ( $ w ) ; } return 'WHERE ' . implode ( ' AND ' , $ where ) ; }
Prepare the where clause for use in the MySQL query.
@param  array $queryParts
@return null|string
Prepare the where clause for use in the MySQL query .