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 
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) 
WHERE 
  1 
  AND cscart_categories.category_id IN (220) 
  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 products.company_id IN('1', '2', '3', '4', '5', '6') 
  AND products.product_type != 'D' 
GROUP BY 
  products.product_id 
ORDER BY 
  product asc, 
  products.product_id ASC 
LIMIT 
  0, 12

Query time 0.00115

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "7.39"
    },
    "ordering_operation": {
      "using_filesort": true,
      "grouping_operation": {
        "using_temporary_table": true,
        "using_filesort": false,
        "nested_loop": [
          {
            "table": {
              "table_name": "cscart_categories",
              "access_type": "const",
              "possible_keys": [
                "PRIMARY",
                "c_status",
                "p_category_id"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "category_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": [
                "category_id",
                "storefront_id",
                "usergroup_ids",
                "status"
              ]
            }
          },
          {
            "table": {
              "table_name": "products_categories",
              "access_type": "ref",
              "possible_keys": [
                "PRIMARY",
                "pt"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "category_id"
              ],
              "key_length": "3",
              "ref": [
                "const"
              ],
              "rows_examined_per_scan": 3,
              "rows_produced_per_join": 3,
              "filtered": "100.00",
              "using_index": true,
              "cost_info": {
                "read_cost": "1.05",
                "eval_cost": "0.60",
                "prefix_cost": "1.65",
                "data_read_per_join": "48"
              },
              "used_columns": [
                "product_id",
                "category_id"
              ]
            }
          },
          {
            "table": {
              "table_name": "products",
              "access_type": "eq_ref",
              "possible_keys": [
                "PRIMARY",
                "status",
                "idx_parent_product_id"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "product_id"
              ],
              "key_length": "3",
              "ref": [
                "atulecarter_atul_demo1.products_categories.product_id"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 1,
              "filtered": "42.58",
              "cost_info": {
                "read_cost": "3.00",
                "eval_cost": "0.26",
                "prefix_cost": "5.25",
                "data_read_per_join": "6K"
              },
              "used_columns": [
                "product_id",
                "product_type",
                "status",
                "company_id",
                "usergroup_ids",
                "parent_product_id"
              ],
              "attached_condition": "((`atulecarter_atul_demo1`.`products`.`parent_product_id` = 0) and ((`atulecarter_atul_demo1`.`products`.`usergroup_ids` = '') or find_in_set(0,`atulecarter_atul_demo1`.`products`.`usergroup_ids`) or find_in_set(1,`atulecarter_atul_demo1`.`products`.`usergroup_ids`)) and (`atulecarter_atul_demo1`.`products`.`status` = 'A') and (`atulecarter_atul_demo1`.`products`.`company_id` in ('1','2','3','4','5','6')) and (`atulecarter_atul_demo1`.`products`.`product_type` <> 'D'))"
            }
          },
          {
            "table": {
              "table_name": "companies",
              "access_type": "eq_ref",
              "possible_keys": [
                "PRIMARY"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "company_id"
              ],
              "key_length": "4",
              "ref": [
                "atulecarter_atul_demo1.products.company_id"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 0,
              "filtered": "16.67",
              "cost_info": {
                "read_cost": "1.28",
                "eval_cost": "0.04",
                "prefix_cost": "6.78",
                "data_read_per_join": "1K"
              },
              "used_columns": [
                "company_id",
                "status",
                "company"
              ],
              "attached_condition": "(`atulecarter_atul_demo1`.`companies`.`status` = 'A')"
            }
          },
          {
            "table": {
              "table_name": "descr1",
              "access_type": "eq_ref",
              "possible_keys": [
                "PRIMARY",
                "product_id"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "product_id",
                "lang_code"
              ],
              "key_length": "9",
              "ref": [
                "atulecarter_atul_demo1.products_categories.product_id",
                "const"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 0,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "0.21",
                "eval_cost": "0.04",
                "prefix_cost": "7.04",
                "data_read_per_join": "994"
              },
              "used_columns": [
                "product_id",
                "lang_code",
                "product",
                "full_description"
              ]
            }
          },
          {
            "table": {
              "table_name": "prices",
              "access_type": "ref",
              "possible_keys": [
                "usergroup",
                "product_id",
                "lower_limit",
                "usergroup_id"
              ],
              "key": "usergroup",
              "used_key_parts": [
                "product_id"
              ],
              "key_length": "3",
              "ref": [
                "atulecarter_atul_demo1.products_categories.product_id"
              ],
              "rows_examined_per_scan": 3,
              "rows_produced_per_join": 0,
              "filtered": "97.36",
              "using_index": true,
              "cost_info": {
                "read_cost": "0.23",
                "eval_cost": "0.12",
                "prefix_cost": "7.39",
                "data_read_per_join": "14"
              },
              "used_columns": [
                "product_id",
                "lower_limit",
                "usergroup_id"
              ],
              "attached_condition": "((`atulecarter_atul_demo1`.`prices`.`lower_limit` = 1) and (`atulecarter_atul_demo1`.`prices`.`usergroup_id` in (0,0,1)))"
            }
          }
        ]
      }
    }
  }
}

Result

product_id product company_name product_type parent_product_id full_description
26 Mac OS X Lion: The Missing Manual CS-Cart P 0 <table style="color: #333333; font-family: Arial, Verdana, Geneva, Helvetica, sans-serif; font-size: 12px; line-height: 16px; text-align: left; background-color: #ffffff;" cellspacing="0" cellpadding="0" width="100%"> <tbody> <tr> <td style="font-size: 12px; font-family: Arial, Verdana, Geneva, Helvetica, sans-serif; color: #333333;"> <div> <div> <p>For a company that promised to "put a pause on new features," Apple sure has been busy-there's barely a feature left untouched in Mac OS X 10.6 "Snow Leopard." There's more speed, more polish, more refinement-but still no manual. Fortunately, David Pogue is back, with the humor and expertise that have made this the #1 bestselling Mac book for eight years straight. You get all the answers with jargon-free introductions to:</p> <p>&nbsp;</p> <ul> <li><strong>Big-ticket changes.</strong>&nbsp;A 64-bit overhaul. Faster everything. A rewritten Finder. Microsoft Exchange compatibility. All-new QuickTime Player. If Apple wrote it, this book covers it.</li> <li><strong>Snow Leopard Spots.</strong>&nbsp;This book demystifies the hundreds of smaller enhancements, too, in all 50 programs that come with the Mac: Safari, Mail, iChat, Preview, Time Machine.</li> <li><strong>Shortcuts.</strong>&nbsp;This must be the tippiest, trickiest Mac book ever written. Undocumented surprises await on every page.</li> <li><strong>Power usage.</strong>&nbsp;Security, networking, build-your-own Services, file sharing with Windows, even Mac OS X's Unix chassis-this one witty, expert guide makes it all crystal clear.</li> </ul> </div> </div> </td> </tr> </tbody> </table>
35 Managing Enterprise Content: A Unified Content Strategy, 2nd Edition CS-Cart P 0 <p> <p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-bottom: 0px; line-height: 1.5em; color: #000000; font-family: 'Lucida Grande', Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;">We can't just design content for one channel, device or medium anymore; we need to design responsive structured content to reach customers anytime, anywhere, and on any device. And we can't do that until we can define how each element associated with a content object should be effectively written to respond to different customer needs and context of the content as well as changes in display and different capabilities of devices. This book presents a unified content strategy model.<br /><br />A unified content strategy:</p> <ul style="margin-top: 0px; margin-bottom: 1em; margin-left: 1.5em; color: #000000; font-family: 'Lucida Grande', Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff; padding: 0px;"> <li style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; line-height: 1.5em;">Identifies customer requirements</li> </ul> <ul style="margin-top: 0px; margin-bottom: 1em; margin-left: 1.5em; color: #000000; font-family: 'Lucida Grande', Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff; padding: 0px;"> <li style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; line-height: 1.5em;">Defines structured content models for responsive content</li> </ul> <ul style="margin-top: 0px; margin-bottom: 1em; margin-left: 1.5em; color: #000000; font-family: 'Lucida Grande', Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff; padding: 0px;"> <li style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; line-height: 1.5em;">Determines how content will be reused and repurposed across media and devices and how it will adapt to changing customer needs</li> </ul> <ul style="margin-top: 0px; margin-bottom: 1em; margin-left: 1.5em; color: #000000; font-family: 'Lucida Grande', Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff; padding: 0px;"> <li style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; line-height: 1.5em;">Identifies the tags (metadata) for retrieval and dynamic delivery</li> </ul> <ul style="margin-top: 0px; margin-bottom: 1em; margin-left: 1.5em; color: #000000; font-family: 'Lucida Grande', Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff; padding: 0px;"> <li style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; line-height: 1.5em;">Determines how content should be managed throughout the entire content lifecycle</li> </ul> <ul style="margin-top: 0px; margin-bottom: 1em; margin-left: 1.5em; color: #000000; font-family: 'Lucida Grande', Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff; padding: 0px;"> <li style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; line-height: 1.5em;">Defines the governance policies to manage the content from creation to retirement</li> </ul> </p>
36 Routing Protocols and Concepts: CCNA Exploration Companion Guide CS-Cart P 0 <p>&nbsp;</p> <p style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #000000; text-align: left; margin: 0px;"><em>Routing Protocols and Concepts</em>, CCNA Exploration Companion Guide is the official supplemental textbook for the Routing Protocols and Concepts course in the Cisco Networking Academy&reg; CCNA&reg; Exploration curriculum version 4. This course describes the architecture, components, and operation of routers, and explains the principles of routing and the primary routing protocols. The Companion Guide, written and edited by Networking Academy instructors, is designed as a portable desk reference to use anytime, anywhere. The book&rsquo;s features reinforce the material in the course to help you focus on important concepts and organize your study time for exams.</p> <p style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #000000; text-align: left; margin: 0px;">&nbsp;</p> <p style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #000000; text-align: left; margin: 0px;">New and improved features help you study and succeed in this course:</p> <ul style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #000000; text-align: left;"> <li style="font-size: 1em;">Chapter objectives&mdash;Review core concepts by answering the focus questions listed at the beginning of each chapter.</li> <li style="font-size: 1em;">Key terms&mdash;Refer to the updated lists of networking vocabulary introduced and turn to the highlighted terms in context in each chapter.</li> <li style="font-size: 1em;">Glossary&mdash;Consult the comprehensive glossary with more than 150 terms.</li> <li style="font-size: 1em;">Check Your Understanding questions and answer key&mdash;Evaluate your readiness with the updated end-of-chapter questions that match the style of questions you see on the online course quizzes. The answer key explains each answer.</li> <li style="font-size: 1em;">Challenge questions and activities&mdash;Strive to ace more challenging review questions and activities designed to prepare you for the complex styles of questions you might see on the CCNA exam. The answer key explains each answer.&nbsp;</li> </ul> <p>&nbsp;</p>