DEV: minor SQL formatting change

DEV: minor SQL formatting change

Moved join prior to left join to make query less confusing.

Has no material impact on performance.

diff --git a/app/jobs/scheduled/reindex_search.rb b/app/jobs/scheduled/reindex_search.rb
index c0eee8f..50d3e54 100644
--- a/app/jobs/scheduled/reindex_search.rb
+++ b/app/jobs/scheduled/reindex_search.rb
@@ -113,11 +113,11 @@ module Jobs
         SELECT
           posts.id
         FROM posts
+        JOIN topics ON topics.id = posts.topic_id
         LEFT JOIN post_search_data pd
           ON pd.locale = :locale
           AND pd.version = :version
           AND pd.post_id = posts.id
-        INNER JOIN topics ON topics.id = posts.topic_id
         WHERE pd.post_id IS NULL
         AND posts.deleted_at IS NULL
         AND topics.deleted_at IS NULL

GitHub sha: 451e9c4b