cga_entity_query.diff

cga_entity_query.diff
diff --git a/docroot/sites/all/modules/custom/cga_entity_queries/cga_entity_queries.module b/docroot/sites/all/modules/custom/cga_entity_queries/cga_entity_queries.module
index a1c029b..dafb76c 100644
--- a/docroot/sites/all/modules/custom/cga_entity_queries/cga_entity_queries.module
+++ b/docroot/sites/all/modules/custom/cga_entity_queries/cga_entity_queries.module
@@ -354,6 +354,7 @@ function cga_entity_queries_get_current_or_most_recent_session() {
       $query = new EntityFieldQuery();
       $query->entityCondition('entity_type', 'taxonomy_term')
         ->entityCondition('bundle', 'sessions')
+        ->fieldCondition('field_start_end_dates', 'value', date("Y-m-d"), '<=')
         ->fieldOrderBy('field_start_end_dates', 'value2', 'DESC')
         ->range(0, 1)
         ->addMetaData('account', user_load(1)); // Run the query as user 1.
@@ -801,4 +802,4 @@ function cga_entity_queries_get_detail_pages_by_committee($comm_nid) {
     return $node;
   };
   return cga_utility_query_cache(__FUNCTION__, $query, "{$comm_nid}");
-}
\ No newline at end of file
+}