diff --git a/db/hotimedb.go b/db/hotimedb.go index 1385653..fa86736 100644 --- a/db/hotimedb.go +++ b/db/hotimedb.go @@ -665,11 +665,13 @@ func (that *HoTimeDB) Select(table string, qu ...interface{}) []Map { data := ObjToSlice(qu[intQs]) for i := 0; i < len(data); i++ { k := data.GetString(i) - if strings.Contains(k, " AS ") { + if strings.Contains(k, " AS ") || + strings.Contains(k, ".") { query += " " + k + " " } else { + query += " `" + k + "` " }