SELECT 
  cscart_pages.*, 
  cscart_page_descriptions.*, 
  cscart_seo_names.name as seo_name, 
  cscart_seo_names.path as seo_path 
FROM 
  cscart_pages 
  INNER JOIN cscart_page_descriptions ON cscart_pages.page_id = cscart_page_descriptions.page_id 
  LEFT JOIN cscart_seo_names ON cscart_seo_names.object_id = cscart_pages.page_id 
  AND cscart_seo_names.type = 'a' 
  AND cscart_seo_names.dispatch = '' 
  AND cscart_seo_names.lang_code = 'en' 
WHERE 
  cscart_pages.page_id = 35 
  AND cscart_page_descriptions.lang_code = 'en' 
  AND (
    cscart_pages.usergroup_ids = '' 
    OR FIND_IN_SET(0, cscart_pages.usergroup_ids) 
    OR FIND_IN_SET(1, cscart_pages.usergroup_ids)
  ) 
  AND cscart_pages.page_type IN ('T', 'L', 'B', 'F')

Query time 0.00078

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.00183779,
    "const_condition": "1",
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_pages",
          "access_type": "const",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "3",
          "used_key_parts": ["page_id"],
          "ref": ["const"],
          "rows": 1,
          "filtered": 100
        }
      },
      {
        "table": {
          "table_name": "cscart_page_descriptions",
          "access_type": "const",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "9",
          "used_key_parts": ["page_id", "lang_code"],
          "ref": ["const", "const"],
          "rows": 1,
          "filtered": 100
        }
      },
      {
        "table": {
          "table_name": "cscart_seo_names",
          "access_type": "ref",
          "possible_keys": ["PRIMARY", "dispatch"],
          "key": "PRIMARY",
          "key_length": "206",
          "used_key_parts": ["object_id", "type", "dispatch", "lang_code"],
          "ref": ["const", "const", "const", "const"],
          "loops": 1,
          "rows": 1,
          "cost": 0.00183779,
          "filtered": 100,
          "attached_condition": "trigcond(cscart_seo_names.`type` = 'a' and cscart_seo_names.dispatch = '' and cscart_seo_names.lang_code = 'en')"
        }
      }
    ]
  }
}

Result

page_id company_id parent_id id_path status page_type position timestamp usergroup_ids localization new_window use_avail_period avail_from_timestamp avail_till_timestamp facebook_obj_type abt__ut2_microdata_schema_type lang_code page description meta_keywords meta_description page_title link seo_name seo_path
35 0 0 35 A T 0 1730847600 0 0 N 0 0 activity en Cookie Policy <p><span style="font-size: 10pt;">This Cookie Policy explains how Surf Creative Solutions Ltd. ("Surf," "we," or "our") uses cookies and similar tracking technologies on our website. We use cookies to enhance user experience, improve functionality, and provide personalized content. By using our website, you consent to our use of cookies as described below. You can control cookie preferences at any time.</span></p> <h3><span style="font-size: 10pt;">1. What are Cookies?</span></h3> <p><span style="font-size: 10pt;">Cookies are small text files stored on your device when you visit a website. They allow the website to recognize your device and retain information about your preferences or past actions. Cookies enable us to understand how users interact with our site, helping us to provide an optimal browsing experience.</span></p> <h3><span style="font-size: 10pt;">2. Types of Cookies We Use</span></h3> <p><span style="font-size: 10pt;">Surf uses various types of cookies for different purposes:</span></p> <p><span style="font-size: 10pt;"><strong>Strictly Necessary Cookies (Always Required)</strong></span></p> <p><span style="font-size: 10pt;">These cookies are essential for the website to function correctly. Without these, the site may not operate smoothly. Strictly necessary cookies cannot be disabled through the website but can be managed through your browser settings.</span></p> <ul> <li><span style="font-size: 10pt;"><strong>Site Functionality:</strong> Maintains essential features like login sessions and cart management.</span></li> <li><span style="font-size: 10pt;"><strong>Stripe:</strong> Facilitates secure payment processing for transactions on Surf. <a title="Stripe Privacy Policy" href="https://stripe.com/in/privacy" target="_blank" rel="noopener">Stripe Privacy Policy</a> </span></li> <li><span style="font-size: 10pt;"><strong>PayPal:</strong> Enables PayPal as an additional payment method. <a title="Paypal Privacy Policy" href="https://www.paypal.com/eu/legalhub/privacy-full" target="_blank" rel="noopener">Paypal Privacy Policy</a></span></li> </ul> <p><span style="font-size: 10pt;"><strong>Functional Cookies</strong></span></p> <p><span style="font-size: 10pt;">Functional cookies enable additional features and enhance the site’s usability. Disabling these cookies may affect some functions, such as social media sharing and map integration.</span></p> <ul> <li><span style="font-size: 10pt;"><strong>Facebook: </strong>Supports the Facebook share button and other Facebook interactions on product pages. <a title="Facebook Privacy Policy" href="https://www.facebook.com/privacy/policy/?entry_point=data_policy_redirect&amp;entry=0" target="_blank" rel="noopener">Facebook Privacy Policy</a></span></li> <li><span style="font-size: 10pt;"><strong>Pinterest: </strong>Powers Pinterest functionality, such as the Pinterest button. <a title="Pinterest Privacy Policy" href="https://policy.pinterest.com/en">Pinterest Privacy Policy</a></span></li> <li><span style="font-size: 10pt;"><strong>Twitter: </strong>Enables Twitter features, like sharing product pages. <a title="Twitter Privacy Policy" href="https://x.com/en/privacy" target="_blank" rel="noopener">Twitter Privacy Policy</a></span></li> <li><span style="font-size: 10pt;"><strong>Yandex: </strong>Facilitates social media buttons to enable sharing across multiple platforms. <a title="Yandex Privacy Policy" href="https://yandex.com/legal/confidential/">Yandex Privacy Policy</a></span></li> <li><span style="font-size: 10pt;"><strong>Google Maps: </strong>Allows displaying maps, locations, and other location-based features. <a title="Google Privacy Policy" href="https://policies.google.com/privacy?hl=en-EU">Google Privacy Policy</a></span><span style="font-size: 10pt;"></span></li> </ul> <p><span style="font-size: 10pt;"><strong>Marketing Cookies</strong></span></p> <p><span style="font-size: 10pt;">Marketing cookies are used by Surf and our advertising partners to deliver relevant ads and measure ad effectiveness. They help us tailor advertisements to suit user preferences, based on browsing behavior.</span></p> <ul> <li><span style="font-size: 10pt;"><strong>Facebook Pixel:</strong> Tracks interactions with ads (e.g., product page visits, add-to-cart actions) to gauge ad performance and provide targeted ads. <a title="Facebook Privacy Policy" href="https://www.facebook.com/privacy/policy/?entry_point=data_policy_redirect&amp;entry=0">Facebook Privacy Policy</a></span></li> </ul> <p><span style="font-size: 10pt;"><strong>Performance Cookies</strong></span></p> <p><span style="font-size: 10pt;">Performance cookies collect anonymous data to assess how visitors use the website. This information helps us optimize pages, improve navigation, and ensure site stability.</span></p> <ul> <li><span style="font-size: 10pt;"><strong>Google Tag Manager:</strong> Tracks analytics on visitor behavior, page views, and unique visitors, assisting in site performance enhancements. Google Tag Manager Privacy Statement <a title="Google Tag Manager Privacy Statement" href="https://support.google.com/tagmanager/answer/9323295?hl=en">Google Tag Manager Privacy Statement</a></span></li> </ul> <p><span style="font-size: 10pt;"><strong>3. Managing Cookies</strong></span></p> <p><span style="font-size: 10pt;"><strong>Cookie Preferences on Our Website</strong></span></p> <p><span style="font-size: 10pt;">When you first visit Surf’s website, you’ll be given the option to accept or customize your cookie settings. This banner will allow you to:</span></p> <ul> <li><span style="font-size: 10pt;">Accept all cookies.</span></li> <li><span style="font-size: 10pt;">Enable or disable specific categories of cookies (except strictly necessary cookies).</span></li> </ul> <p><span style="font-size: 10pt;"><strong>Browser Cookie Settings</strong></span></p> <p><span style="font-size: 10pt;">You can manage cookies directly through your browser settings:</span></p> <ul> <li><span style="font-size: 10pt;"><strong>Chrome:</strong><a title="Manage cookies in Chrome" href="https://support.google.com/chrome/answer/95647?hl=en&amp;co=GENIE.Platform%3DDesktop">Manage cookies in Chrome</a></span></li> <li><span style="font-size: 10pt;"><strong>Firefox:</strong><a title="Manage cookies in Firefox" href="https://support.mozilla.org/en-US/kb/enhanced-tracking-protection-firefox-desktop?redirectslug=enable-and-disable-cookies-website-preferences&amp;redirectlocale=en-US">Manage cookies in F</a><a title="Manage cookies in Firefox" href="https://support.mozilla.org/en-US/kb/enhanced-tracking-protection-firefox-desktop?redirectslug=enable-and-disable-cookies-website-preferences&amp;redirectlocale=en-US">irefox</a></span></li> <li><span style="font-size: 10pt;"><strong>Safari:</strong><a title="Manage cookies in Safari" href="https://support.apple.com/en-in/guide/safari/sfri11471/mac">M</a><a title="Manage cookies in Safari" href="https://support.apple.com/en-in/guide/safari/sfri11471/mac">an</a><a title="Manage cookies in Safari" href="https://support.apple.com/en-in/guide/safari/sfri11471/mac">age cookies in</a><a title="Manage cookies in Safari" href="https://support.apple.com/en-in/guide/safari/sfri11471/mac"> Safari</a></span></li> <li><span style="font-size: 10pt;"><strong>Edge:</strong><a title="Manage cookies in Edge" href="https://support.microsoft.com/en-us/windows/manage-cookies-in-microsoft-edge-view-allow-block-delete-and-use-168dab11-0753-043d-7c16-ede5947fc64d">Manage cookies in Edge</a></span></li> </ul> <span style="font-size: 10pt;">Disabling or deleting cookies may affect the functionality of Surf’s website, particularly if you disable strictly necessary cookies.</span> <p><span style="font-size: 10pt;"><strong>4. Updates to Our Cookie Policy</strong></span></p> <p><span style="font-size: 10pt;">We may update our Cookie Policy periodically to reflect changes in the cookies we use or legal requirements. Please review this policy periodically to stay informed about how we use cookies.</span></p> <p><span style="font-size: 10pt;"><strong>Version:</strong><span> 1.0</span><br /><strong>Effective Date:</strong><span> 31/03/2025</span></span></p> cookie-policy