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 = 'ru' 
  INNER JOIN cscart_ult_objects_sharing ON (
    cscart_ult_objects_sharing.share_object_id = cscart_pages.page_id 
    AND cscart_ult_objects_sharing.share_company_id = 1 
    AND cscart_ult_objects_sharing.share_object_type = 'pages'
  ) 
WHERE 
  cscart_pages.page_id = 28 
  AND cscart_page_descriptions.lang_code = 'ru' 
  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.00077

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_ult_objects_sharing",
          "access_type": "const",
          "possible_keys": [
            "PRIMARY"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "share_object_id",
            "share_company_id",
            "share_object_type"
          ],
          "key_length": "159",
          "ref": [
            "const",
            "const",
            "const"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 1,
          "filtered": "100.00",
          "using_index": true,
          "cost_info": {
            "read_cost": "0.00",
            "eval_cost": "0.20",
            "prefix_cost": "0.00",
            "data_read_per_join": "160"
          },
          "used_columns": [
            "share_company_id",
            "share_object_id",
            "share_object_type"
          ]
        }
      },
      {
        "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
28 1 0 28 A T 0 1553806800 0 0 N 0 0 activity ru Цены <section> <h1>Цены.</h1> <a id="top"></a> <nav> <ul style=" text-align: left; padding-bottom:10px; text-decoration:underline; text-transform:uppercase;"> <li><a href="ceny#1"><strong class="gk_menu">Стоимость услуг.</strong></a></li> </ul> </nav> <p class="ty-notice">Если проблему можно решить за деньги, то это не проблема, это расходы.</p> <section> <a id="1"></a> <h2>Стоимость услуг фабрики крашения.</h2> <table style="width: 100%;border: 0px;"> <caption style="margin-bottom: 5px;">Стоимость услуг фабрики крашения.</caption> <thead> <tr> <th style="text-align: left; text-transform: uppercase;">Технология</th> <th style="text-align: left; text-transform: uppercase;">Описание</th> <th style="text-align: center;">Загрузка</th> <th style="text-transform: uppercase;">Стоимость, руб. </th> </tr> </thead> <tbody> <tr class="ty-product-feature"> <td> <div> <strong><span class="ty-product-feature__label">Подбор цвета: </span></strong><span class="ty-product-feature__label"><span class="ty-help-info"> <div class="hidden ty-wysiwyg-content" id="content_content_price_0001" title="Подбор цвета."> <p> </p> </div> </span> </span> </div> </td> <td> Зависит от сложности цвета.</td> <td style="text-align: center;">-</td> <td style="text-align: center;"> 3000-5000</td> </tr> <tr class="ty-product-feature"> <td> <div> <strong><span class="ty-product-feature__label">Крашение в барабане (тай-дай): </span></strong><span class="ty-product-feature__label"><span class="ty-help-info"> <div class="hidden ty-wysiwyg-content" id="content_content_price_0002" title="Крашение в барабане."> <p> </p> </div> </span> </span> </div> </td> <td> Зависит от красителя.</td> <td style="text-align: center;">25 кг.</td> <td style="text-align: center;">от 16000</td> </tr> <tr class="ty-product-feature"> <td> <div> <strong><span class="ty-product-feature__label">Крашение однотонное:<span class="ty-help-info"> <div class="hidden ty-wysiwyg-content" id="content_content_price_0003" title="Крашение однотонное."> <p><strong>Крашение однотонное: </strong></p> </div> </span> </span></strong> </div> </td> <td>Зависит от красителя.</td> <td style="text-align: center;">23 кг.</td> <td style="text-align: center;">от 12000</td> </tr> <tr class="ty-product-feature"> <td> <div> <strong><span class="ty-product-feature__label">Машинная вытравка: </span></strong><span class="ty-product-feature__label"><span class="ty-help-info"> <div class="hidden ty-wysiwyg-content" id="content_content_price_0004" title="Машинная вытравка."> <p> </p> </div> </span> </span> </div> </td> <td> Зависит от свойств материала. </td> <td style="text-align: center;">20 кг.</td> <td style="text-align: center;"> 13000</td> </tr> <tr class="ty-product-feature"> <td><div> <span class="ty-product-feature__label"><strong>Отбелка без энзима:</strong> <span class="ty-help-info"> <div class="hidden ty-wysiwyg-content" id="content_content_price_" title="Отбелка без энзима."> <p><strong>Отбелка без энзима: </strong></p> </div> </span> </span> </div></td> <td>Зависит от свойств материала. </td> <td style="text-align: center;">25 кг. / 50 кг.</td> <td style="text-align: center;"> 8000 / 14000</td> </tr> <tr class="ty-product-feature"> <td><div> <strong><span class="ty-product-feature__label">Отбелка с энзимом: </span></strong><span class="ty-product-feature__label"><span class="ty-help-info"> <div class="hidden ty-wysiwyg-content" id="content_content_price_2" title="Отбелка с энзимом."> <p></p> </div> </span> </span> </div></td> <td>Зависит от свойств материала. </td> <td style="text-align: center;">25 кг. / 50 кг.</td> <td style="text-align: center;">12000 / 19000</td> </tr> <tr class="ty-product-feature"> <td><strong><span class="ty-product-feature__label">Энзимная варка: </span></strong></td> <td>Зависит от свойств материала. </td> <td style="text-align: center;">25 кг. / 50 кг.</td> <td style="text-align: center;">9000 / 14000</td> </tr> <tr class="ty-product-feature"> <td> <div> <strong><span class="ty-product-feature__label">Мягчение: </span></strong><span class="ty-product-feature__label"><span class="ty-help-info"> <div class="hidden ty-wysiwyg-content" id="content_content_price_0005" title="Мягчение."> <p> </p> </div> </span> </span> </div> </td> <td>Зависит от свойств материала. </td> <td style="text-align: center;">25 кг. / 50 кг.</td> <td style="text-align: center;"> 7000 / 12000</td> </tr> <tr class="ty-product-feature"> <td><strong>Ручная вытравка:</strong></td> <td>Поштучно (футболка)</td> <td style="text-align: center;">1 шт.</td> <td style="text-align: center;">от 350</td> </tr> <tr class="ty-product-feature"> <td><strong><span class="ty-product-feature__label">Сухая варка: </span></strong></td> <td>Поштучно (футболка)</td> <td style="text-align: center;">1 шт.</td> <td style="text-align: center;">от 280</td> </tr> <tr class="ty-product-feature"> <td><strong><span class="ty-product-feature__label">Вельвет: </span></strong></td> <td>Поштучно (футболка)</td> <td style="text-align: center;">1 шт.</td> <td style="text-align: center;">от 250</td> </tr> <tr class="ty-product-feature"> <td><strong>Пигментное крашение (полимер):</strong></td> <td>Поштучно (футболка)</td> <td style="text-align: center;">1 шт.</td> <td style="text-align: center;">от 450</td> </tr> </tbody> </table> <p>Другие позиции по согласованию после изготовления образцов.</p> </section> <a href="ceny#top"><strong class="gk_menu">Вверх к оглавлению.</strong></a> </section> Цены на крашение и варку одежды и ткани. Цены на крашение и варку одежды и ткани. Цены ceny