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 = 'es' 
WHERE 
  cscart_pages.page_id = 8 
  AND cscart_page_descriptions.lang_code = 'es' 
  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.00080

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "1.20"
    },
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_pages",
          "access_type": "const",
          "possible_keys": [
            "PRIMARY"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "page_id"
          ],
          "key_length": "3",
          "ref": [
            "const"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 1,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "0.00",
            "eval_cost": "0.20",
            "prefix_cost": "0.00",
            "data_read_per_join": "2K"
          },
          "used_columns": [
            "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"
          ]
        }
      },
      {
        "table": {
          "table_name": "cscart_page_descriptions",
          "access_type": "const",
          "possible_keys": [
            "PRIMARY"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "page_id",
            "lang_code"
          ],
          "key_length": "9",
          "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.20",
            "prefix_cost": "0.00",
            "data_read_per_join": "3K"
          },
          "used_columns": [
            "page_id",
            "lang_code",
            "page",
            "description",
            "meta_keywords",
            "meta_description",
            "page_title",
            "link"
          ]
        }
      },
      {
        "table": {
          "table_name": "cscart_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": "1.00",
            "eval_cost": "0.20",
            "prefix_cost": "1.20",
            "data_read_per_join": "1K"
          },
          "used_columns": [
            "name",
            "object_id",
            "type",
            "dispatch",
            "path",
            "lang_code"
          ]
        }
      }
    ]
  }
}

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 lang_code page description meta_keywords meta_description page_title link seo_name seo_path
8 0 7 7/8 A B 0 1415316000 0 0 N 0 0 es Merchium Marketplace Opens for Partners <p>Hi!</p><p>The Merchium Marketplace is where merchants will buy themes and apps for their stores. Today, we have great news for developers and designers who want to sell their work via the Marketplace and to benefit from Merchium’s growth.</p><p><strong>The Merchium Marketplace is now open for partners.</strong> If you want to sell apps and themes on the Marketplace, email us at <a href="mailto:partners@merchium.com?subject=Become%20a%20Merchium%20Partner" title="Become a Merchium Partner">partners@merchium.com</a> and we’ll send you a personal invitation to join a secret registration page.</p><div style="text-align: center; margin: 15px auto;"><a class="button ty-btn ty-btn__primary" href="mailto:partners@merchium.com?subject=Become%20a%20Merchium%20Partner" title="Become a Merchium Partner">Become a Partner</a></div><p>The Marketplace is currently running behind a curtain; only our team and the partners have access to the site. Once the Marketplace has enough apps and themes, we’ll open it to the public.</p><!--CUT--><h2>Why Become a Partner</h2><p>As our partner, you will get <strong>80% of the profits from every app and 70% of the profits from every theme</strong> you create and sell through the Marketplace. To withdraw funds, you’ll need only a PayPal account.</p><p>By entering the Marketplace now, you are putting your apps and themes in a privileged position: when the Marketplace opens to merchants, your work will be the first thing they see. You’ll benefit from a market with a low concurrency that is under growing demand.</p><h2>What a Partner Does</h2><p>There are two roles that a partner can fulfill: <strong>theme designer</strong> or <strong>app developer</strong>.</p><p><strong>Theme designers</strong> use Merchium’s built-in editors to create themes for Merchium storefronts. Being a theme designer requires CSS knowledge and visual design skills. No programming or template code editing is involved. Learn more about creating themes for Merchium in the <a href="http://docs.merchium.com/themes" title="Merchium Theme Designer Guide" target="_blank">docs</a>.</p><p><strong>App developers</strong> contribute to Merchium by adding payment, shipping, and helpdesk services, marketing tools, and other useful things. You can develop apps for Merchium using any programming language. Please refer to the Merchium <a href="http://docs.merchium.com/apps/api" title="Merchium API Documentation" target="_blank">API docs</a> and the official <a href="http://docs.merchium.com/apps" title="Merchium App Developer Guide" target="_blank">app developer guide</a> to learn more.</p><h2>How to Join</h2><p>Email us at <a href="mailto:partners@merchium.com?subject=Become%20a%20Merchium%20Partner" title="Become a Merchium Partner">partners@merchium.com</a> to gain access to the Marketplace.</p><div style="text-align: center; margin: 15px auto;"><a class="button ty-btn ty-btn__primary" href="mailto:partners@merchium.com?subject=Become%20a%20Merchium%20Partner" title="Become a Merchium Partner">Become a Partner</a></div><p><a href="http://docs.merchium.com" title="Merchium Developer Documentation" target="_blank">Read the docs</a> to learn how to create apps and themes for Merchium.</p><p>If you have any questions during development, feel free to ask our team via the <a href="http://help.merchium.com/support/discussions/forums/1000155049" title="Merchium Developer Forum" target="_blank">developer forum</a> (to log in, <a href="http://www.merchium.com/?signup" title="Merchium Free Signup" target="_blank">create a free Merchium account</a>).</p><hr><p>We’re happy to answer any questions about the partnership in the comments section.</p><p>Follow Merchium on Facebook and Twitter to get the latest news!</p><p>Thanks!</p> merchium-marketplace-opens-for-partners 7