SELECT 
  cscart_companies.company_id, 
  cscart_companies.lang_code, 
  cscart_companies.email, 
  cscart_companies.company, 
  cscart_companies.timestamp, 
  cscart_companies.status, 
  cscart_companies.tax_number, 
  cscart_company_descriptions.company_description, 
  absolute_rating.rating AS absolute_vendor_rating, 
  cscart_vendor_plan_descriptions.plan, 
  cscart_seo_names.name as seo_name, 
  cscart_seo_names.path as seo_path, 
  AVG(
    cscart_discussion_rating.rating_value
  ) AS average_rating, 
  CONCAT(
    cscart_companies.company_id, 
    '_', 
    IF (
      cscart_discussion_rating.thread_id, 
      cscart_discussion_rating.thread_id, 
      '0'
    )
  ) AS company_thread_ids, 
  cscart_companies.suspend_date, 
  cscart_companies.last_time_suspended 
FROM 
  cscart_companies 
  LEFT JOIN cscart_company_descriptions ON cscart_company_descriptions.company_id = cscart_companies.company_id 
  AND cscart_company_descriptions.lang_code = 'tr' 
  LEFT JOIN cscart_absolute_rating AS absolute_rating ON absolute_rating.object_id = cscart_companies.company_id 
  AND absolute_rating.object_type = 'company' 
  LEFT JOIN cscart_vendor_plan_descriptions ON cscart_companies.plan_id = cscart_vendor_plan_descriptions.plan_id 
  AND cscart_vendor_plan_descriptions.lang_code = 'tr' 
  LEFT JOIN cscart_seo_names ON cscart_seo_names.object_id = cscart_companies.company_id 
  AND cscart_seo_names.type = 'm' 
  AND cscart_seo_names.dispatch = '' 
  AND cscart_seo_names.lang_code = 'tr' 
  LEFT JOIN cscart_discussion ON cscart_discussion.object_id = cscart_companies.company_id 
  AND cscart_discussion.object_type = 'M' 
  LEFT JOIN cscart_discussion_posts ON cscart_discussion_posts.thread_id = cscart_discussion.thread_id 
  AND cscart_discussion_posts.status = 'A' 
  LEFT JOIN cscart_discussion_rating ON cscart_discussion.thread_id = cscart_discussion_rating.thread_id 
  AND cscart_discussion_rating.post_id = cscart_discussion_posts.post_id 
WHERE 
  1 
  AND cscart_companies.status = 'A' 
  AND cscart_companies.company_id IN (3, 4) 
GROUP BY 
  company_thread_ids 
ORDER BY 
  cscart_companies.company asc 
LIMIT 
  0, 10

Query time 0.00303

Explain
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE absolute_rating system PRIMARY 0 const row not found
1 SIMPLE cscart_companies range PRIMARY PRIMARY 4 2 Using index condition; Using where; Using temporary; Using filesort
1 SIMPLE cscart_vendor_plan_descriptions eq_ref PRIMARY PRIMARY 10 hobilifedt.cscart_companies.plan_id,const 1 Using where
1 SIMPLE cscart_company_descriptions eq_ref PRIMARY PRIMARY 10 hobilifedt.cscart_companies.company_id,const 1 Using where
1 SIMPLE cscart_seo_names ref PRIMARY,dispatch PRIMARY 206 hobilifedt.cscart_companies.company_id,const,const,const 1 Using where
1 SIMPLE cscart_discussion eq_ref object_id object_id 6 hobilifedt.cscart_companies.company_id,const 1 Using where
1 SIMPLE cscart_discussion_posts ref thread_id,thread_id_2 thread_id 3 hobilifedt.cscart_discussion.thread_id 1 Using where
1 SIMPLE cscart_discussion_rating eq_ref PRIMARY,thread_id PRIMARY 3 hobilifedt.cscart_discussion_posts.post_id 1 Using where

Result

company_id lang_code email company timestamp status tax_number company_description absolute_vendor_rating plan seo_name seo_path average_rating company_thread_ids suspend_date last_time_suspended
3 tr magaza@yedekparcapazar.com Yedek Parça Pazar 1698830273 A 13667164994 Platinum yedek-parca-pazar 3_0 1741660494 1741660494