             "join "
             "(select jar_name, group_name, max(created) as created "
             "from jars "
+            "where group_name = ? "
             "group by group_name, jar_name) l "
             "on j.jar_name = l.jar_name "
             "and j.group_name = l.group_name "

            "(select jar_name, group_name, max(created) as created "
            "from jars "
            "where version not like '%-SNAPSHOT' "
            "group by group_name, jar_name) r "
            "on j.jar_name = r.jar_name "
            "and j.group_name = r.group_name "
            ;; Find version for latest release
            "left join "
            "(select jar_name, group_name, version, created from jars) as r2 "
            "on j.jar_name = r2.jar_name "
            "and j.group_name = r2.group_name "
            "and r.created = r2.created "

            "order by j.group_name asc, j.jar_name asc"]
        (remove nil?)
        (apply str))
      (remove nil? [group-id group-id group-id group-id artifact-id])]
     :results)))

(defn get-artifact [group-id artifact-id]
