private function getSelectOneByType($type)
    {
        if (empty($this->types[$type]['sql_select_by_ids'])) {
            $this->types[$type]['sql_select_by_ids'] = 'SELECT ' . $this->getEscapedTypeFields($type) . ' FROM ' . $this->getTypeTable($type, true) . ' WHERE `id` IN ? ORDER BY `id`';
        }

        return $this->types[$type]['sql_select_by_ids'];
    }
private function getSelectOneByType($type)
    {
        if (empty($this->types[$type]['sql_select_by_ids'])) {
            $this->types[$type]['sql_select_by_ids'] = 'SELECT ' . $this->getEscapedTypeFields($type) . ' FROM ' . $this->getTypeTable($type, true) . ' WHERE `id` IN ? ORDER BY `id`';
        }

        return $this->types[$type]['sql_select_by_ids'];
    }
private function getSelectOneByType ( $ type ) { if ( empty ( $ this -> types [ $ type ] [ 'sql_select_by_ids' ] ) ) { $ this -> types [ $ type ] [ 'sql_select_by_ids' ] = 'SELECT ' . $ this -> getEscapedTypeFields ( $ type ) . ' FROM ' . $ this -> getTypeTable ( $ type , true ) . ' WHERE `id` IN ? ORDER BY `id`' ; } return $ this -> types [ $ type ] [ 'sql_select_by_ids' ] ; }
Return select by ID-s query for the given type.

@param  string $type
@return string
Return select by ID - s query for the given type .