SELECT 
  SQL_CALC_FOUND_ROWS products.product_id, 
  descr1.product as product, 
  companies.company as company_name, 
  products.product_type, 
  products.parent_product_id, 
  descr1.full_description as full_description, 
  descr1.short_description as short_description, 
  GROUP_CONCAT(
    DISTINCT tags.tag 
    ORDER BY 
      tags.tag SEPARATOR ', '
  ) AS tags 
FROM 
  cscart_products as products 
  LEFT JOIN cscart_product_descriptions as descr1 ON descr1.product_id = products.product_id 
  AND descr1.lang_code = 'ar' 
  LEFT JOIN cscart_product_prices as prices ON prices.product_id = products.product_id 
  AND prices.lower_limit = 1 
  LEFT JOIN cscart_companies AS companies ON companies.company_id = products.company_id 
  INNER JOIN cscart_products_categories as products_categories ON products_categories.product_id = products.product_id 
  INNER JOIN cscart_categories ON cscart_categories.category_id = products_categories.category_id 
  AND (
    cscart_categories.usergroup_ids = '' 
    OR FIND_IN_SET(
      0, cscart_categories.usergroup_ids
    ) 
    OR FIND_IN_SET(
      1, cscart_categories.usergroup_ids
    )
  ) 
  AND cscart_categories.status IN ('A', 'H') 
  AND cscart_categories.storefront_id IN (0, 1) 
  LEFT JOIN cscart_tag_links AS tags_links ON tags_links.object_id = products.product_id 
  AND tags_links.object_type = 'P' 
  LEFT JOIN cscart_tags AS tags ON tags.tag_id = tags_links.tag_id 
WHERE 
  1 
  AND companies.status IN ('A') 
  AND (
    products.usergroup_ids = '' 
    OR FIND_IN_SET(0, products.usergroup_ids) 
    OR FIND_IN_SET(1, products.usergroup_ids)
  ) 
  AND products.status IN ('A') 
  AND prices.usergroup_id IN (0, 0, 1) 
  AND products.parent_product_id = 0 
  AND (
    tags.status = 'A' 
    OR tags.tag_id IS NULL
  ) 
  AND products.product_type != 'D' 
GROUP BY 
  products.product_id, 
  products.product_id 
ORDER BY 
  products.timestamp desc, 
  products.product_id ASC 
LIMIT 
  0, 10

Query time 0.00690

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 1.577987832,
    "filesort": {
      "sort_key": "products.`timestamp` desc, products.product_id",
      "temporary_table": {
        "filesort": {
          "sort_key": "products.product_id",
          "temporary_table": {
            "nested_loop": [
              {
                "table": {
                  "table_name": "products",
                  "access_type": "ALL",
                  "possible_keys": ["PRIMARY", "status", "idx_parent_product_id"],
                  "loops": 1,
                  "rows": 793,
                  "cost": 0.1614838,
                  "filtered": 27.49785805,
                  "attached_condition": "products.parent_product_id = 0 and (products.usergroup_ids = '' or find_in_set(0,products.usergroup_ids) or find_in_set(1,products.usergroup_ids)) and products.`status` = 'A' and products.product_type <> 'D'"
                }
              },
              {
                "block-nl-join": {
                  "table": {
                    "table_name": "companies",
                    "access_type": "ALL",
                    "possible_keys": ["PRIMARY"],
                    "loops": 218.0580076,
                    "rows": 6,
                    "cost": 0.146606168,
                    "filtered": 16.66666603,
                    "attached_condition": "companies.`status` = 'A'"
                  },
                  "buffer_type": "flat",
                  "buffer_size": "171Kb",
                  "join_type": "BNL",
                  "attached_condition": "companies.company_id = products.company_id"
                }
              },
              {
                "table": {
                  "table_name": "prices",
                  "access_type": "ref",
                  "possible_keys": [
                    "usergroup",
                    "product_id",
                    "lower_limit",
                    "usergroup_id"
                  ],
                  "key": "usergroup",
                  "key_length": "3",
                  "used_key_parts": ["product_id"],
                  "ref": ["u985510652_ecartify_dev.products.product_id"],
                  "loops": 218.0580076,
                  "rows": 1,
                  "cost": 0.212789812,
                  "filtered": 96.69136047,
                  "attached_condition": "prices.lower_limit = 1 and prices.usergroup_id in (0,0,1)"
                }
              },
              {
                "table": {
                  "table_name": "descr1",
                  "access_type": "eq_ref",
                  "possible_keys": ["PRIMARY", "product_id"],
                  "key": "PRIMARY",
                  "key_length": "9",
                  "used_key_parts": ["product_id", "lang_code"],
                  "ref": ["u985510652_ecartify_dev.products.product_id", "const"],
                  "loops": 210.8432488,
                  "rows": 1,
                  "cost": 0.268049035,
                  "filtered": 100,
                  "attached_condition": "trigcond(descr1.lang_code = 'ar')"
                }
              },
              {
                "table": {
                  "table_name": "products_categories",
                  "access_type": "ref",
                  "possible_keys": ["PRIMARY", "pt"],
                  "key": "pt",
                  "key_length": "3",
                  "used_key_parts": ["product_id"],
                  "ref": ["u985510652_ecartify_dev.products.product_id"],
                  "loops": 210.8432488,
                  "rows": 1,
                  "cost": 0.206055073,
                  "filtered": 100,
                  "using_index": true
                }
              },
              {
                "table": {
                  "table_name": "cscart_categories",
                  "access_type": "eq_ref",
                  "possible_keys": ["PRIMARY", "c_status", "p_category_id"],
                  "key": "PRIMARY",
                  "key_length": "3",
                  "used_key_parts": ["category_id"],
                  "ref": [
                    "u985510652_ecartify_dev.products_categories.category_id"
                  ],
                  "loops": 210.8432488,
                  "rows": 1,
                  "cost": 0.189405835,
                  "filtered": 100,
                  "attached_condition": "(cscart_categories.usergroup_ids = '' or find_in_set(0,cscart_categories.usergroup_ids) or find_in_set(1,cscart_categories.usergroup_ids)) and cscart_categories.`status` in ('A','H') and cscart_categories.storefront_id in (0,1)"
                }
              },
              {
                "table": {
                  "table_name": "tags_links",
                  "access_type": "ref",
                  "possible_keys": ["PRIMARY"],
                  "key": "PRIMARY",
                  "key_length": "6",
                  "used_key_parts": ["object_type", "object_id"],
                  "ref": ["const", "u985510652_ecartify_dev.products.product_id"],
                  "loops": 210.8432488,
                  "rows": 1,
                  "cost": 0.204192272,
                  "filtered": 100,
                  "attached_condition": "trigcond(tags_links.object_type = 'P')"
                }
              },
              {
                "table": {
                  "table_name": "tags",
                  "access_type": "eq_ref",
                  "possible_keys": ["PRIMARY"],
                  "key": "PRIMARY",
                  "key_length": "3",
                  "used_key_parts": ["tag_id"],
                  "ref": ["u985510652_ecartify_dev.tags_links.tag_id"],
                  "loops": 210.8432488,
                  "rows": 1,
                  "cost": 0.189405835,
                  "filtered": 100,
                  "attached_condition": "trigcond(tags.`status` = 'A' or tags.tag_id is null) and trigcond(trigcond(tags_links.tag_id is not null))"
                }
              }
            ]
          }
        }
      }
    }
  }
}

Result

product_id product company_name product_type parent_product_id full_description short_description tags
2932 Beethoven Piano Concertos Nos. 1 & 2 Store P 0 <p> <p>ROYAL PHILHARMONIC ORCHESTRA&nbsp;</p> <p>PIANO: MARIO GALEANI&nbsp;</p> <p>CONDUCTOR: GRZEGORZ NOWAK</p> <p>&nbsp;</p> <p>Mario Galeani and Grzegorz Nowak partner once more in a new disc of Beethoven piano concertos.</p> <p>TRACKLISTING</p> <p>Piano Concerto No.1 in C Major, Op.15&nbsp;</p> <p>1. Allegro con brio&nbsp;</p> <p>2. Largo&nbsp;</p> <p>3. Rondo: Allegro scherzando&nbsp;</p> <p>&nbsp;</p> <p>Piano Concerto No.2 in B Flat Major, Op.19&nbsp;</p> <p>4. Allegro con brio&nbsp;</p> <p>5. Adagio&nbsp;</p> <p>6. Rondo: Molto allegro&nbsp;</p> </p>
2926 today Store P 0
2925 love is life Store P 0
2923 آيفون 17 برو Store P 0 مستقبل الهواتف الذكية قد وصل. نقدم لكم آيفون 17 برو، قفزة نوعية في التصميم، الأداء، والتصوير الفوتوغرافي. صُمم هذا الجهاز ليتجاوز كل توقعاتك، ليقدم تجربة مستخدم سلسة، قوية، وشخصية للغاية. **قوة لا مثيل لها مع شريحة A17 Pro** في قلب آيفون 17 برو تكمن شريحة A17 Pro الجديدة كليًا، المصممة بتقنية متطورة لتقدم أسرع أداء لوحدة المعالجة المركزية ووحدة معالجة الرسوميات على الإطلاق في هاتف ذكي. استمتع بتطبيقات الواقع المعزز الأكثر تطلبًا، الألعاب ذات الرسومات الاحترافية، وتعدد المهام بسلاسة لا تصدق. كما تدمج الشريحة محركًا عصبيًا معززًا، مما يفتح آفاقًا جديدة للذكاء الاصطناعي على الجهاز، ويوفر ميزات أكثر ذكاءً وكفاءة. **نظام كاميرا احترافي يعيد تعريف التصوير** آيفون 17 برو يضع استوديو تصوير احترافي في جيبك. يتميز بنظام كاميرا ProVision متعدد العدسات مع مستشعرات أكبر، وتقنية تثبيت بصري متقدمة، وقدرات تصوير حاسوبية ثورية. التقط صورًا ومقاطع فيديو بتفاصيل مذهلة، وألوان واقعية، وأداء لا يصدق في الإضاءة المنخفضة. اكتشف وضع Cinematic Pro الجديد لتصوير الفيديو بجودة سينمائية بدقة 8K، وعدسة Telephoto Periscope المحسّنة لتقريب بصري أبعد دون فقدان الجودة، بالإضافة إلى قدرات Macro Photography المذهلة. **شاشة ProVision XDR: نافذتك إلى عالم آخر** انغمس في محتواك مع شاشة ProVision XDR الجديدة كليًا. تتميز هذه الشاشة المتطورة بتقنية ProMotion 2.0، التي توفر معدلات تحديث تكيفية تصل إلى 144 هرتز لتجربة تمرير وتفاعل فائقة السلاسة. مع سطوع لا يصدق، تباين لا نهائي، ودقة ألوان غير مسبوقة، تُظهر شاشة ProVision XDR كل بكسل بوضوح مذهل، مما يجعل الصور ومقاطع الفيديو تنبض بالحياة. بالإضافة إلى ذلك، تتميز الشاشة بتصميم شبه خالٍ من الحواف، مما يوفر مساحة عرض أكبر في نفس الحجم. **عمر بطارية يدوم طوال اليوم وأكثر** بفضل شريحة A17 Pro الموفرة للطاقة والتحسينات المتقدمة في نظام التشغيل iOS، يقدم آيفون 17 برو عمر بطارية استثنائيًا يدوم طوال اليوم وحتى أبعد من ذلك. استمتع بمشاهدة الأفلام، وتصفح الويب، وتشغيل الألعاب لساعات طويلة دون قلق. **تصميم متطور ومتانة استثنائية** تم تصميم آيفون 17 برو من مواد فاخرة ومتينة، بما في ذلك درع Ceramic Shield المعزز وزجاج خلفي من التيتانيوم المصقول. إنه ليس جميلًا فحسب، بل مصمم ليتحمل قسوة الاستخدام اليومي، مع مقاومة محسّنة للماء والغبار وفقًا لمعيار IP69. **ميزات مبتكرة لمستقبل متصل** يأتي آيفون 17 برو مزودًا بتقنية Wi-Fi 7 لاتصالات لاسلكية فائقة السرعة، و5G محسّن لتنزيلات وتحميلات أسرع. كما يتضمن نظامًا صوتيًا مكانيًا متطورًا يوفر تجربة صوتية غامرة لا مثيل لها. مع iOS الجديد، ستستمتع بميزات خصوصية وأمان رائدة، وتخصيص أعمق، وتكامل سلس مع نظام Apple البيئي. آيفون 17 برو ليس مجرد هاتف، بل هو الأداة المثلى للمبدعين، المحترفين، وكل من يسعى لتجربة هاتف ذكي لا تعرف الحدود. مستقبل الابتكار بين يديك. آيفون 17 برو يقدم أداءً لا يضاهى، نظام كاميرا احترافي متطور، وشاشة ProVision مذهلة لتجربة لا مثيل لها.
2918 test product for ai review analyzer Store P 0 <p>this is a test product</p>
2917 Tesyjfguyf ssddd Store P 0 <p>The Tesyjfguyf ssddd combines cutting-edge technology with sleek design to provide an unparalleled experience. Whether you're looking for performance, reliability, or aesthetics, this product has it all. Made with high-quality materials, it ensures durability and long-lasting use. Ideal for both everyday tasks and special occasions, the Tesyjfguyf ssddd is a must-have in your collection. Explore its unique features and elevate your lifestyle today!</p> <p>Discover the innovative Tesyjfguyf ssddd, designed for efficiency and style.</p>
2915 Wedgetail Adventure Accessory Solar panel Recessed mount kit Store P 0 Wedgetail Adventure Accessory Solar panel Recessed mount kit
2914 Wedgetail Adventure Accessory 150mm conduit carrier caps and 3 brackets, NO PIPE Store P 0 Wedgetail Adventure Accessory 150mm conduit carrier caps and 3 brackets, NO PIPE
2913 Wedgetail Adventure Accessory 100mm conduit carrier caps and 3 brackets, NO PIPE Store P 0 Wedgetail Adventure Accessory 100mm conduit carrier caps and 3 brackets, NO PIPE
1864 Wedgetail Adventure Accessory Vent Hole Kit Store P 0 Wedgetail Adventure Accessory Vent Hole Kit