diff --git a/fixme-new/lib/Fixme/State.hs b/fixme-new/lib/Fixme/State.hs index ca4f0c8c..5245e778 100644 --- a/fixme-new/lib/Fixme/State.hs +++ b/fixme-new/lib/Fixme/State.hs @@ -451,7 +451,7 @@ genPredQ tbl what = go what AttrLike name val -> do let x = val <> "%" let binds = [Bound x] - ([qc|(json_extract(json, '$."{name}"') like ?)|], binds) + ([qc|(json_extract({tbl}.json, '$."{name}"') like ?)|], binds) Not a -> do let (sql, bound) = go a