diff --git a/src/FACT_jobs.jl b/src/FACT_jobs.jl
index 9b3b7af3ae69fd4956d917b3ad3fd10e773949a8..3dcc197168baee86a95bc974edd802ceee5cb687 100644
--- a/src/FACT_jobs.jl
+++ b/src/FACT_jobs.jl
@@ -139,9 +139,9 @@ function eu_lfs(conn::MySQL.Connection, selection::Dict)
         # execute
         result = query_connection(conn, query)
         if !("industry" in names(result))
-            println("No data returned for query with GeoID = $id and Year = $year.")
+           println("No data returned for query with GeoID = $id and Year = $year.")
            # Initialize `result` with the expected columns but no rows
-           #result = DataFrame(industry = String[], jobs = Float64[], geo_id = String[], agg_level = Int[])
+           result = DataFrame(industry = String[], jobs = Float64[], geo_id = String[], agg_level = Int[])
         end
         # add geo_id col
         result[!, :geo_id] = fill(id, nrow(result))
@@ -178,6 +178,11 @@ function eu_sbs(conn::MySQL.Connection, selection::Dict)
             query = "SELECT Nace as industry, Employment as jobs FROM SBS WHERE Year = "*string(year)*" AND GeoID = '"*id*"';"
             # execute
             result = query_connection(conn, query)
+            if !("industry" in names(result))
+               println("No data returned for query with GeoID = $id and Year = $year.")
+               # Initialize `result` with the expected columns but no rows
+               result = DataFrame(industry = String[], jobs = Float64[], geo_id = String[], agg_level = Int[])
+            end
             # add geo_id col
             result[!, :geo_id] = fill(id, nrow(result))
             # add agg level
@@ -213,6 +218,11 @@ function eu_rea(conn::MySQL.Connection, selection::Dict)
         query = "SELECT Nace as industry, EmpTh*1000 as jobs FROM REA WHERE Year = "*string(year)*" AND GeoID = '"*id*"';"
         # execute
         result = query_connection(conn, query)
+        if !("industry" in names(result))
+            println("No data returned for query with GeoID = $id and Year = $year.")
+            # Initialize `result` with the expected columns but no rows
+            result = DataFrame(industry = String[], jobs = Float64[], geo_id = String[], agg_level = Int[])
+        end
         # add geo_id col
         result[!, :geo_id] = fill(id, nrow(result))
         # add agg level