                :selection {:from [:certnames]}
                :alias "latest_report_id"
                :subquery? false
-               :source-tables #{:latest_report_id}}))
+               :source-tables #{:certnames}}))
 
 (def environments-query
   "Basic environments query, more useful when used with subqueries"


               :alias "latest_report"
               :subquery? false
               :source-tables #{:latest_report}}))

(def latest-report-id-query
  "Usually used as a subquery of reports"

                                                      :foreign-columns ["name"]}})

               :alias "fact_nodes"
               :source-tables #{:factsets :fact_paths}
               :subquery? false}))

(def report-logs-query
