From 232394ea8a5cabe2281c1b3ecf284aa72d65b569 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Wed, 3 Jun 2015 10:56:26 -0800 Subject: [PATCH] Missed species table reference --- species.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/species.go b/species.go index ee4f208..f8f02e0 100644 --- a/species.go +++ b/species.go @@ -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)