SELECT 
  company_descriptions.*, 
  companies.*, 
  vendor_plan_descriptions.plan, 
  seo_names.name as seo_name, 
  seo_names.path as seo_path, 
  vendor_ga_tracking_code, 
  vendor_fb_tracking_code, 
  AVG(discussion_rating.rating_value) AS average_rating, 
  CONCAT(
    companies.company_id, 
    '_', 
    IF (
      discussion_rating.thread_id, discussion_rating.thread_id, 
      '0'
    )
  ) AS company_thread_ids 
FROM 
  companies AS companies 
  LEFT JOIN company_descriptions AS company_descriptions ON company_descriptions.company_id = companies.company_id 
  AND company_descriptions.lang_code = 'en' 
  LEFT JOIN vendor_plan_descriptions ON companies.plan_id = vendor_plan_descriptions.plan_id 
  AND vendor_plan_descriptions.lang_code = 'en' 
  LEFT JOIN seo_names ON seo_names.object_id = 2718 
  AND seo_names.type = 'm' 
  AND seo_names.dispatch = '' 
  AND seo_names.lang_code = 'en' 
  LEFT JOIN discussion as discussionA ON discussionA.object_id = companies.company_id 
  AND discussionA.object_type = 'M' 
  LEFT JOIN discussion_posts ON discussion_posts.thread_id = discussionA.thread_id 
  AND discussion_posts.status = 'A' 
  LEFT JOIN discussion_rating ON discussionA.thread_id = discussion_rating.thread_id 
  AND discussion_rating.post_id = discussion_posts.post_id 
WHERE 
  companies.company_id = 2718

Query time 0.00109

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "2.91"
    },
    "nested_loop": [
      {
        "table": {
          "table_name": "companies",
          "access_type": "const",
          "possible_keys": [
            "PRIMARY"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "company_id"
          ],
          "key_length": "4",
          "ref": [
            "const"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 1,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "0.00",
            "eval_cost": "0.10",
            "prefix_cost": "0.00",
            "data_read_per_join": "14K"
          },
          "used_columns": [
            "company_id",
            "status",
            "company",
            "lang_code",
            "address",
            "city",
            "state",
            "country",
            "zipcode",
            "email",
            "phone",
            "url",
            "storefront",
            "secure_storefront",
            "entry_page",
            "redirect_customer",
            "countries_list",
            "timestamp",
            "shippings",
            "logos",
            "request_user_id",
            "request_account_name",
            "request_account_data",
            "plan_id",
            "stripe_connect_account_id",
            "identifier_facebook_pixel",
            "featured_products",
            "sd_ga_tracking_code",
            "paypal_commerce_platform_account_id",
            "tagline",
            "url_facebook",
            "url_instagram",
            "url_twitter",
            "url_pinterest",
            "announcement",
            "shippo_api_token",
            "shippo_carrier",
            "shippo_service_type",
            "vendor_ga_tracking_code",
            "vendor_fb_tracking_code",
            "custom_domain",
            "custom_domain_status",
            "taxjar_key",
            "taxjar_export_statuses",
            "taxjar_export_csv_data",
            "ag_hide_city",
            "updated_timestamp",
            "suspend_date",
            "grace_period_start",
            "last_time_suspended",
            "last_debt_notification_time",
            "tax_number",
            "stripe_connect_account_type",
            "registered_from_storefront_id"
          ]
        }
      },
      {
        "table": {
          "table_name": "company_descriptions",
          "access_type": "const",
          "possible_keys": [
            "PRIMARY"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "company_id",
            "lang_code"
          ],
          "key_length": "10",
          "ref": [
            "const",
            "const"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 1,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "0.00",
            "eval_cost": "0.10",
            "prefix_cost": "0.00",
            "data_read_per_join": "1K"
          },
          "used_columns": [
            "company_id",
            "lang_code",
            "company_description",
            "terms",
            "subdomain_colors",
            "i18n_company",
            "i18n_address",
            "i18n_city"
          ]
        }
      },
      {
        "table": {
          "table_name": "vendor_plan_descriptions",
          "access_type": "const",
          "possible_keys": [
            "PRIMARY"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "plan_id",
            "lang_code"
          ],
          "key_length": "10",
          "ref": [
            "const",
            "const"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 1,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "0.00",
            "eval_cost": "0.10",
            "prefix_cost": "0.00",
            "data_read_per_join": "1K"
          },
          "used_columns": [
            "plan_id",
            "lang_code",
            "plan"
          ]
        }
      },
      {
        "table": {
          "table_name": "seo_names",
          "access_type": "ref",
          "possible_keys": [
            "PRIMARY",
            "dispatch"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "object_id",
            "type",
            "dispatch",
            "lang_code"
          ],
          "key_length": "206",
          "ref": [
            "const",
            "const",
            "const",
            "const"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 1,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "0.89",
            "eval_cost": "0.10",
            "prefix_cost": "0.99",
            "data_read_per_join": "1K"
          },
          "used_columns": [
            "name",
            "object_id",
            "type",
            "dispatch",
            "path",
            "lang_code"
          ]
        }
      },
      {
        "table": {
          "table_name": "discussionA",
          "access_type": "const",
          "possible_keys": [
            "object_id"
          ],
          "key": "object_id",
          "used_key_parts": [
            "object_id",
            "object_type"
          ],
          "key_length": "6",
          "ref": [
            "const",
            "const"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 1,
          "filtered": "100.00",
          "using_index": true,
          "cost_info": {
            "read_cost": "0.78",
            "eval_cost": "0.10",
            "prefix_cost": "1.87",
            "data_read_per_join": "24"
          },
          "used_columns": [
            "thread_id",
            "object_id",
            "object_type"
          ]
        }
      },
      {
        "table": {
          "table_name": "discussion_posts",
          "access_type": "ref",
          "possible_keys": [
            "thread_id",
            "thread_id_2"
          ],
          "key": "thread_id_2",
          "used_key_parts": [
            "thread_id",
            "status"
          ],
          "key_length": "6",
          "ref": [
            "goimagine.discussionA.thread_id",
            "const"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 1,
          "filtered": "100.00",
          "using_index": true,
          "cost_info": {
            "read_cost": "0.25",
            "eval_cost": "0.18",
            "prefix_cost": "2.30",
            "data_read_per_join": "787"
          },
          "used_columns": [
            "post_id",
            "thread_id",
            "status"
          ]
        }
      },
      {
        "table": {
          "table_name": "discussion_rating",
          "access_type": "eq_ref",
          "possible_keys": [
            "PRIMARY",
            "thread_id"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "post_id"
          ],
          "key_length": "3",
          "ref": [
            "goimagine.discussion_posts.post_id"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 1,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "0.44",
            "eval_cost": "0.18",
            "prefix_cost": "2.91",
            "data_read_per_join": "28"
          },
          "used_columns": [
            "rating_value",
            "post_id",
            "thread_id"
          ],
          "attached_condition": "<if>(is_not_null_compl(discussion_rating), (`goimagine`.`discussion_rating`.`thread_id` = `goimagine`.`discussionA`.`thread_id`), true)"
        }
      }
    ]
  }
}

Result

company_id lang_code company_description terms subdomain_colors i18n_company i18n_address i18n_city status company address city state country zipcode email phone url storefront secure_storefront entry_page redirect_customer countries_list timestamp shippings logos request_user_id request_account_name request_account_data plan_id stripe_connect_account_id identifier_facebook_pixel featured_products sd_ga_tracking_code paypal_commerce_platform_account_id tagline url_facebook url_instagram url_twitter url_pinterest announcement shippo_api_token shippo_carrier shippo_service_type vendor_ga_tracking_code vendor_fb_tracking_code custom_domain custom_domain_status taxjar_key taxjar_export_statuses taxjar_export_csv_data ag_hide_city updated_timestamp suspend_date grace_period_start last_time_suspended last_debt_notification_time tax_number stripe_connect_account_type registered_from_storefront_id plan seo_name seo_path average_rating company_thread_ids
2718 en <p>Welcome to Serenity Lane Designs.&nbsp; My name is Diane, and I am the sole-owner and creator behind Serenity Lane.&nbsp; <br></p><p>I have been crafting and creating for easily 20 years.&nbsp; The medium of the projects has changed some over the years, and I like to try new things. I started Serenity Lane officially July 1, 2011, but the idea had always been in my head.&nbsp; We used to live on a road called Serenity Lane, and I always thought that was such a quaint and cute name.&nbsp; As I mentioned, I've always loved to craft, but while living in that house, my love for rubber stamps began.<br><br>I began making handmade cards, and scrapbook pages.&nbsp; Eventually I began stamping other items, like tiles and candles.&nbsp; I also love to craft with papers, and a few years ago my husband bought me a Cricut for Christmas and my love for vinyl and more paper crafts took off from there. <br><br> </p><p>Many people have asked me how I came up with the name - Serenity Lane, and the significance of the pink Gerber daisy.<br></p><p>The pink Gerber daisy has a special meaning for me.&nbsp; In the spring of 2010 I was asked to lead a women's spiritual life retreat.&nbsp; The theme I choose was "No One Can Take Away Your Joy".&nbsp; In doing research for the retreat, I learned that the Gerber daisy symbolizes cheerfulness and joy, and the color pink symbolizes - in the Christian sense, joy and happiness.&nbsp; I adopted these symbols and used them in the retreat.&nbsp; My mom went on this retreat with me, and a week after the retreat she got very ill. She spent 2 months in and out of ICU, and we were told her disease - Scleroderma, was finally going to win her almost 30 year battle.&nbsp; My mom passed away 6 months later.&nbsp; Mom and I were close - I "dragged" her off to retreats and outings, shopping and adventures all of the time.&nbsp; The one I led was our last "outing" together. The scripture I focused on for the retreat took on new meaning for me (John 16:22 ~ Now is your time of grief, but I will see you again and you will rejoice, and no one will take away your joy.).&nbsp; The pink Gerber daisy symbolizes many things for me - the joy and happiness crafting brings me, and a special way to remember my mom, and knowing she would love that I've stepped out and started this new adventure.</p> <p>So -- welcome to Serenity Lane Designs!&nbsp; There are so many things for you to check out.&nbsp; I love to do custom orders, so please feel free to drop me a note and ask for a custom order.</p> <p>I've also had the honor of appearing on ABC's The Chew.&nbsp; It was an exciting adventure for me.&nbsp; I was able to craft with the hosts -- you can check out the story, pictures, and more on my <a href="http://serenitylanedesigns.com/blog" target="_blank">blog</a> if you'd like.</p> <p>Thank you so much for taking the time to read my creative journey's story - and remember . . .no one can take away your joy!</p><p><br></p><p>--diane<br></p><p></p> <p><strong>Processing Time</strong></p> <p>Currently processing time is 3 to 5 business days before your item ships.&nbsp; Most of my items are made-to-order.&nbsp; Any one-of-a-kind items that are already done will ship in 1 to 2 days.</p> <p><strong>Payments</strong><br></p> <p>Payment should be made through Stripe or PayPal, through goimagine's checkout -checks and money orders will not be accepted. <br></p> <p>NY state residents will be charged sales tax</p> <p><strong>Shipping Policies</strong><br><br>Your order will be wrapped with care and shipped via USPS - mostly First Class mail, some are sent Priority Mail. You will receive a tracking/delivery conformation number once your order has shipped.</p> <p>Once the package leaves my hands, I can not be responsible for lost or damaged items. If you have not received your order, please let me know and I'll do what I can to help you track it down. If your item is damaged, please message me and we'll see what we can do to fix it. <br><br></p> <p><strong>Refunds, Exchanges and Cancellations</strong></p> <p>I don't offer refunds, exchanges or cancellations after shipping.&nbsp; If an order needs to be cancelled prior to shipping, please contact me within 12 hours of ordering.<br></p> <p> Please note - all items are handmade. Because of this, no 2 items are exactly the same - that's what makes them unique. Because most of the items are made-to-order, there may be a slight variance in the pictured item, and what you receive.<br></p> <p>Your satisfaction is important to me -- If there is a problem with your order, please contact me directly through a message here, or at serenitylanedesigns@live.com . If an item arrives damaged, please contact me as soon as possible. Please provide any photos.&nbsp; We will work together to resolve and come to a solution.<br></p> <p>I'm sorry, but because of the handmade nature of my items, I do not offer refunds, partial or otherwise, or exchanges.<br></p> <p><strong>Custom Orders</strong></p> <p>I would be happy to help you with a custom order - I love to do them. Please email me, or message me and let me know what you have in mind. I will then contact you to discuss details. </p> <p>Please note -- custom orders are to be paid in full before any work has begun on your item.&nbsp; Depending on your time frame, your order may require a rush fee.&nbsp; Full payment is expected before work begins.<br></p> <p>There are no refunds on custom ordered items. If there is a problem with the order please contact me directly within 3 days of delivery.<br></p> <p>There will be a 50% cancellation fee on custom orders canceled before shipping. <br><br></p><p></p><p><strong>Wholesale&nbsp;</strong> <br></p><p>If you are interested in an item(s) at whole sale, please message me, or send me an email (serenitylanedesigns@live.com) to discuss the details.</p><br><p></p><p><strong>Additional Information</strong><br></p> <p>Items come from a smoke free home.</p> <p>Gift wrapping is available for a small fee - please message me prior to completing your order.</p><p>Please follow me on my social platforms for sales, coupon codes and special items!</p><p><br></p><p>Thanks you so much for supporting me and my small business!</p><p>--diane<br></p><p></p><p><br></p><p><strong></strong><br></p><p><br></p><br><p></p> <p><br></p> <p><br></p> {"tmenu_style":"V","default_colors":"N","link_color":"#007d89","label_color":"#00a0af","icon_color":"#00a0af","main_btn_color":"#6dd1d6","branded_text_color":"#00a0af","vbp_1_url":"","vbp_2_url":"","vbp_3_url":"","vba_1_url":"","vba_2_url":"","vba_3_url":""} serenitylane 874 Cadosia Rd Hancock A serenitylane 874 Cadosia Rd Hancock NY US 13783 serenitylanedesigns@live.com none Y 1625966224 0 3 acct_1JC4z4CMvZJCmV4O 101219,101159,198968,101149,101136,101101,101223,101117,101048 G-RT9FBPQGC0 F6G9C9KEXKDXJ unique handmade, rubber-stamped, paper-crafted and vinyl designed items https://www.facebook.com/SerLaneDes https://www.instagram.com/blueyes1012/ https://twitter.com/SerLaneDes https://www.pinterest.com/serlanedes <p>Welcome to Serenity Lane Designs!&nbsp; I'm so glad you're here!<br>Be sure to click on each shop category to see everything!&nbsp; And -- check me out on social media for exclusive items and sales!<br></p> UA-212014715-1 A N 0 0 0 0 0 S Professional Plan serenitylane 5.0000 2718_705737