[309702] -  [maps processor] Only process current train
diff --git a/html/process_update_sites.php b/html/process_update_sites.php
index 0b799ae..e2d34a0 100644
--- a/html/process_update_sites.php
+++ b/html/process_update_sites.php
@@ -46,7 +46,10 @@
 }
 
 # Get all active update sites
-$sql = "SELECT * FROM map_files WHERE is_active = 1 AND is_map_file = 0";
+$sql = "SELECT * FROM map_files AS m 
+INNER JOIN release_train_projects AS r ON r.project_id = m.project_id AND r.version = m.version 
+INNER JOIN release_trains AS t on t.train_id = r.train_id 
+WHERE m.is_active = 1 AND m.is_map_file = 0 AND t.is_active = 1";
 $rs_maps = mysql_query($sql, $dbh);
 while($update_site = mysql_fetch_assoc($rs_maps)) {
   $site_url = $update_site['location'];