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 = 'en' 
  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.00674

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 = 'en')"
                }
              },
              {
                "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> <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></p>
2926 today Store P 0
2925 love is life Store P 0
2923 iPhone 17 Pro Store P 0 <p>Unveiling the iPhone 17 Pro – a masterpiece of design, engineering, and innovation. Crafted from aerospace-grade titanium, its ultra-slim profile houses a breathtaking ProMotion XDR display, offering unparalleled brightness, color accuracy, and an adaptive refresh rate from 1Hz to 144Hz for buttery-smooth visuals and incredible power efficiency. The revolutionary A19 Bionic chip, with its 25-core Neural Engine, delivers mind-blowing performance, effortlessly handling pro-grade applications, immersive AR experiences, and next-generation AI features that learn and adapt to your every need.</p> <p>The ProFusion Camera System is a leap forward in mobile photography. Boasting a massive 50MP main sensor with sensor-shift OIS 4.0, a 12MP ultra-wide lens with advanced macro capabilities, and a groundbreaking 15x optical zoom periscope telephoto lens, it captures stunning detail in any lighting condition. Record cinematic 12K video at 30fps with enhanced ProRes support, or explore new dimensions with the next-gen LiDAR Scanner for instant low-light focus and hyper-realistic AR. The front-facing camera, now seamlessly integrated under the display, offers crystal-clear selfies and advanced Face ID.</p> <p>Battery life is no longer a concern, thanks to advanced solid-state battery technology, providing all-day power and beyond, complemented by new MagSafe Ultra charging for lightning-fast wireless power delivery. Stay connected with Wi-Fi 7, 6G capabilities, and enhanced satellite communication for emergencies in even the most remote locations. Running on iOS 19, the iPhone 17 Pro integrates deeper AI functionalities, offering proactive assistance, personalized experiences, and robust privacy features, all while maintaining Apple's commitment to sustainability with recycled materials and an eco-conscious design. This is more than a phone; it's your window to tomorrow.</p> Experience the future of mobile technology with the iPhone 17 Pro. Featuring the revolutionary A19 Bionic chip, an advanced ProFusion Camera System, and a stunning ProMotion XDR display, it redefines performance, photography, and user interaction.
2918 test product for ai review analyzer Store P 0 <p>this is a test product</p>
2917 iPhone 17 Store P 0 <p>Experience the future of smartphones with the iPhone 17. With its powerful A17 Bionic chip, stunning Super Retina XDR display, and advanced camera system, the iPhone 17 is designed for those who demand the best. Enjoy lightning-fast performance, enhanced battery life, and a seamless user experience with iOS 17. The iPhone 17 also introduces innovative features like improved Face ID, MagSafe technology, and enhanced durability with Ceramic Shield. Whether you're capturing breathtaking photos or enjoying your favorite apps, the iPhone 17 delivers unmatched quality and performance.</p> <p>The iPhone 17 is the latest model in Apple's iconic smartphone lineup, featuring cutting-edge technology and sleek design.</p>
2915 Wedgetail Adventure Accessory Solar panel Recessed mount kit Store P 0 <p>Wedgetail Adventure Accessory Solar panel Recessed mount kit</p> <p>CS-Cart Multi vendor Mobile App Builder provides an affordable, end-to-end mobile app for e-commerce businesses that enables growth and expansion in the mobile world.</p> <ul><li>Option to customize the design of the CS Cart Marketplace Mobile App.</li><li><span class="ws-check"></span>Customers can view vendor information, shipping address, description, & products.</li><li><span class="ws-check"></span>Allows the store owner to create multiple customer profiles.</li><li><span class="ws-check"></span>Continuous browsing without internet access with preloaded pages.</li><li><span class="ws-check"></span>Store owners can send various push notifications to customers.</li></ul>
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