Missed species table reference

This commit is contained in:
Matthew Dillon 2015-06-03 10:56:26 -08:00
parent d033f22f12
commit 232394ea8a

View file

@ -82,7 +82,7 @@ func (s SpeciesService) list(opt *ListOptions) (entity, error) {
if len(opt.Ids) != 0 {
var conds []string
s := "st.id IN ("
s := "sp.id IN ("
for i, id := range opt.Ids {
s = s + fmt.Sprintf("$%v,", i+2) // start param index at 2
vals = append(vals, id)