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 companies.status IN ('A') 
  AND products.company_id = 1 
  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.company_id = 1 
  AND products.parent_product_id = 0 
  AND products.product_type != 'D' 
GROUP BY 
  products.product_id 
ORDER BY 
  product asc, 
  products.product_id ASC 
LIMIT 
  32, 16

Query time 0.00505

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "40.23"
    },
    "ordering_operation": {
      "using_filesort": true,
      "grouping_operation": {
        "using_temporary_table": true,
        "using_filesort": false,
        "nested_loop": [
          {
            "table": {
              "table_name": "companies",
              "access_type": "const",
              "possible_keys": [
                "PRIMARY"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "company_id"
              ],
              "key_length": "4",
              "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": "6K"
              },
              "used_columns": [
                "company_id",
                "status",
                "company"
              ]
            }
          },
          {
            "table": {
              "table_name": "cscart_categories",
              "access_type": "ALL",
              "possible_keys": [
                "PRIMARY",
                "c_status",
                "p_category_id"
              ],
              "rows_examined_per_scan": 84,
              "rows_produced_per_join": 3,
              "filtered": "4.00",
              "cost_info": {
                "read_cost": "19.53",
                "eval_cost": "0.67",
                "prefix_cost": "20.20",
                "data_read_per_join": "8K"
              },
              "used_columns": [
                "category_id",
                "storefront_id",
                "usergroup_ids",
                "status"
              ],
              "attached_condition": "(((`pankajecarter_systemfour`.`cscart_categories`.`usergroup_ids` = '') or find_in_set(0,`pankajecarter_systemfour`.`cscart_categories`.`usergroup_ids`) or find_in_set(1,`pankajecarter_systemfour`.`cscart_categories`.`usergroup_ids`)) and (`pankajecarter_systemfour`.`cscart_categories`.`status` in ('A','H')) and (`pankajecarter_systemfour`.`cscart_categories`.`storefront_id` in (0,1)))"
            }
          },
          {
            "table": {
              "table_name": "products_categories",
              "access_type": "ref",
              "possible_keys": [
                "PRIMARY",
                "pt"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "category_id"
              ],
              "key_length": "3",
              "ref": [
                "pankajecarter_systemfour.cscart_categories.category_id"
              ],
              "rows_examined_per_scan": 3,
              "rows_produced_per_join": 10,
              "filtered": "100.00",
              "using_index": true,
              "cost_info": {
                "read_cost": "3.61",
                "eval_cost": "2.02",
                "prefix_cost": "25.82",
                "data_read_per_join": "161"
              },
              "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": [
                "pankajecarter_systemfour.products_categories.product_id"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 0,
              "filtered": "7.93",
              "cost_info": {
                "read_cost": "10.08",
                "eval_cost": "0.16",
                "prefix_cost": "37.92",
                "data_read_per_join": "3K"
              },
              "used_columns": [
                "product_id",
                "product_type",
                "status",
                "company_id",
                "usergroup_ids",
                "parent_product_id"
              ],
              "attached_condition": "((`pankajecarter_systemfour`.`products`.`parent_product_id` = 0) and (`pankajecarter_systemfour`.`products`.`company_id` = 1) and ((`pankajecarter_systemfour`.`products`.`usergroup_ids` = '') or find_in_set(0,`pankajecarter_systemfour`.`products`.`usergroup_ids`) or find_in_set(1,`pankajecarter_systemfour`.`products`.`usergroup_ids`)) and (`pankajecarter_systemfour`.`products`.`status` = 'A') and (`pankajecarter_systemfour`.`products`.`product_type` <> 'D'))"
            }
          },
          {
            "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": [
                "pankajecarter_systemfour.products_categories.product_id",
                "const"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 0,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "0.80",
                "eval_cost": "0.16",
                "prefix_cost": "38.88",
                "data_read_per_join": "3K"
              },
              "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": [
                "pankajecarter_systemfour.products_categories.product_id"
              ],
              "rows_examined_per_scan": 3,
              "rows_produced_per_join": 2,
              "filtered": "97.92",
              "using_index": true,
              "cost_info": {
                "read_cost": "0.87",
                "eval_cost": "0.47",
                "prefix_cost": "40.23",
                "data_read_per_join": "56"
              },
              "used_columns": [
                "product_id",
                "lower_limit",
                "usergroup_id"
              ],
              "attached_condition": "((`pankajecarter_systemfour`.`prices`.`lower_limit` = 1) and (`pankajecarter_systemfour`.`prices`.`usergroup_id` in (0,0,1)))"
            }
          }
        ]
      }
    }
  }
}

Result

product_id product company_name product_type parent_product_id full_description
453 65" Class (64.5" Diag.) LED 8000 Series Smart TV CS-Cart P 0 <p> For the ultimate TV enthusiasts, incredible picture quality and advanced connectivity are just the first step; the Samsung UN65D8000 LED TV goes a step beyond, adding elegant design to the formula. On the commanding 65-inch screen you can enjoy Samsung' Smart TV, which puts the web, a wide range of apps, Skype video calling, and plenty more at your fingertips. Or connect a Blu-ray 3D player to get immersed in cinema-quality 3D programming--two pairs of active glasses are included. </p>
454 65" Class (64.5" Diag.) LED 8000 Series Smart TV CS-Cart P 0 <p> For the ultimate TV enthusiasts, incredible picture quality and advanced connectivity are just the first step; the Samsung UN65D8000 LED TV goes a step beyond, adding elegant design to the formula. On the commanding 65-inch screen you can enjoy Samsung' Smart TV, which puts the web, a wide range of apps, Skype video calling, and plenty more at your fingertips. Or connect a Blu-ray 3D player to get immersed in cinema-quality 3D programming--two pairs of active glasses are included. </p>
455 65" Class (64.5" Diag.) LED 8000 Series Smart TV CS-Cart P 0 <p> For the ultimate TV enthusiasts, incredible picture quality and advanced connectivity are just the first step; the Samsung UN65D8000 LED TV goes a step beyond, adding elegant design to the formula. On the commanding 65-inch screen you can enjoy Samsung' Smart TV, which puts the web, a wide range of apps, Skype video calling, and plenty more at your fingertips. Or connect a Blu-ray 3D player to get immersed in cinema-quality 3D programming--two pairs of active glasses are included. </p>
22 7.1 Channel Blu-ray 3D Home Theater System CS-Cart P 0 <p>Whether you are viewing a premium-quality 2D picture or seeing incredible 3D depth, images are breathtakingly real in Samsung Full HD. Combine with a 3D TV and 3D active shutter glasses to view the latest Hollywood 3D titles or amplify your viewing experience by upconverting 2D content to immersive 3D.</p>
149 8GB E Series Walkman Video MP3 CS-Cart P 0 <p>Long lasting battery offering up to 50 hours of music or up to 10 hours of video playback, FM tuner, Karaoke mode, Clear Audio technologies, EX headphones, integrated mic and 2.0" LCD.</p>
227 Acer 3D Series HN274H bmiiid CS-Cart P 0 <p><span style="font-family: Helvetica, Arial, Verdana; font-size: 12px; line-height: 20px; text-align: left; background-color: #ffffff; color: #000000;">27" Widescreen LCD display - 1920 x 1080 resolution - 100,000,000:1 contrast ratio - white LED backlight - 2ms response time - integrated speakers - HDMI&reg; - USB - DVI - VGA - adjustable display angle - 3D ready - 3-year limited warranty</span></p>
78 adizero Rush Shoes CS-Cart P 0 <p>Get moving in the lightweight adizero&trade; Rush shoes by adidas. These featherweight, dynamic men's running shoes are just 7.5 ounces of high-mileage style, with adiPRENE&reg;+ support in the forefoot, a light synthetic upper and a thin rubber outsole for a close</p>
79 adiZero Tempaia Shoes CS-Cart P 0 <p> The adiZero™ Tempaia shoes by adidas are lightweight, breathable tennis shoes designed for multi-court use. They feature a breathable upper, adiPRENE®+ in the forefoot for propulsion, adiPRENE® heel cushioning and EXTENDED TORSION® for support. </p>
190 AF-S DX NIKKOR 10-24mm f/3.5-4.5G ED CS-Cart P 0 <p>This ultra wide-angle lens, designed exclusively for use with Nikon&rsquo;s DX-format, provides a versatile wide-angle zoom perspective.</p>
189 AF-S NIKKOR 14-24mm f/2.8G ED CS-Cart P 0 <p>Fast aperture, high-performance, ultra-wide-angle zoom optimized for FX- and DX-format sensors featuring Nikon&rsquo;s exclusive ED Glass and Nano Crystal Coat.</p>
162 AIKO SAFE Model AS 180 Office Safe with one shelve & one drawer CS-Cart P 0 <table> <tbody> <tr> <td>All AIKO safes are designed to provide maximum protection against fire and foil any tampering and break-ins. The anti-burglary Construction: Body &amp; Door: Tough steel plates precisely engineered using industry leading manufacturing techniques. Inserted with Premium formulated Ultra Fine Bubble Concrete provides the most effective insulation against intense heat to ensure valuables are protected from burglary &amp; fire. Automatic Stopper: The automatic stopper feature allows users to close the door with slightest of push. Locking System: Fitted with 4 directional Solid Steel bolt locking system to lock horizontally &amp; Vertically. Fitted with Dual Key lock system, with ultra secure cylinder Keys, Key &amp; Dial or Key &amp; Digital lock system. Automatic Re-locking: Fitted with Automatic Re-locking device. Test &amp; Approvals: Achieved the following international test certificates. 1. JIS - Japan Standard 2. KS - Korea Standard 3. SINTEF - Norway Standard 4. CNAL - China Standard Built in Alarm: (Optional) To set off anti burglary alarm</td> </tr> </tbody> </table> <table width="100%" style="margin-top: 20px;"> <tbody> <tr> <td colspan="8"> <h4>SIZE (APPROX.) &amp; BRIEF SPECIFICATION</h4> </td> </tr> <tr> <td colspan="8"> <table width="100%"> <tbody> <tr bgcolor="#660000"> <td class="arial_11pt_white" style="font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: #ffffff; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 6px; text-decoration: none;" width="45%" height="35"><strong>Model</strong></td> <td class="arial_11pt_white" style="font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: #ffffff; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 6px; text-decoration: none;" width="55%"><strong>AS-180</strong></td> </tr> <tr> <td width="45%">Outside</td> <td width="55%">H900 X W600 X D570 mm</td> </tr> <tr> <td>Inside</td> <td>H693 X W462 X D360 mm</td> </tr> <tr> <td>Weight</td> <td>180 Kgs</td> </tr> <tr> <td>Accessory</td> <td>1 Shelf, 1 Drawer</td> </tr> <tr> <td>Capacity</td> <td>116L</td> </tr> </tbody> </table> </td> </tr> </tbody> </table>
159 AIKO SAFE Model AS 53 Home Safe, Horizontal Model with one tray CS-Cart P 0 <p>All AIKO safes are designed to provide maximum protection against fire and foil any tampering and break-ins. The anti-burglary</p> <p>Construction: Body &amp; Door: Tough steel plates precisely engineered using industry leading manufacturing techniques. Inserted with Premium formulated Ultra Fine Bubble Concrete provides the most effective insulation against intense heat to ensure valuables are protected from burglary &amp; fire.</p> <p>Automatic Stopper: The automatic stopper feature allows users to close the door with slightest of push.</p> <p>Locking System: Fitted with 4 directional Solid Steel bolt locking system to lock horizontally &amp; Vertically. Fitted with Dual Key lock system, with ultra secure cylinder Keys, Key &amp; Dial or Key &amp; Digital lock system.</p> <p>Automatic Re-locking: Fitted with Automatic Re-locking device.</p> <p>Test &amp; Approvals: Achieved the following international test certificates. 1. JIS - Japan Standard 2. KS - Korea Standard 3. SINTEF - Norway Standard</p>
158 AIKO SAFE Model Economy (AS 30) Home Safe, with single key CS-Cart P 0 <table> <tbody> <tr> <td>AIKO safes are designed to provide maximum protection against fire and foil any tampering and break-ins. The anti-burglary Construction: Body &amp; Door: Tough steel plates precisely engineered using industry leading manufacturing techniques. Inserted with Premium formulated Ultra Fine Bubble Concrete provides the most effective insulation against intense heat to ensure valuables are protected from burglary &amp; fire. Automatic Stopper: The automatic stopper feature allows users to close the door with slightest of push. Locking System: Fitted with Solid Steel bolt locking system to lock horizontally. Fitted with Single Key lock system, with ultra secure cylinder Key. Test &amp; Approvals: Achieved the following international test certificates. 1. JIS - Japan Standard 2. KS - Korea Standard 3. SINTEF - Norway Standard 4. CNAL - China Standard Built in Alarm: (Optional) To set off anti burglary alarm Terms and Conditions 1. Only loca</td> </tr> </tbody> </table> <table width="100%" style="margin-top: 20px;"> <tbody> <tr> <td colspan="8"> <h4>SIZE (APPROX.) &amp; BRIEF SPECIFICATION</h4> </td> </tr> <tr> <td colspan="8"> <table width="100%"> <tbody> <tr bgcolor="#660000"> <td class="arial_11pt_white" style="font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: #ffffff; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 6px; text-decoration: none;" width="45%" height="35"><strong>Model</strong></td> <td class="arial_11pt_white" style="font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: #ffffff; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 6px; text-decoration: none;" width="55%"><strong>AS 30 - Single Key</strong></td> </tr> <tr> <td width="45%">Outside</td> <td width="55%">320 H x 400 W x 330 D MM</td> </tr> <tr> <td>Inside</td> <td>220 H x 320 W x 210 D MM</td> </tr> <tr> <td>Weight</td> <td>30 KGS</td> </tr> <tr> <td>Accessory</td> <td>NIL</td> </tr> <tr> <td>Capacity</td> <td>14 LTR</td> </tr> </tbody> </table> </td> </tr> </tbody> </table>
245 Apple - iPhone 5c 32GB Cell Phone - Green CS-Cart P 0 <p> A6 chip. 8MP iSight camera. 4-inch Retina display. Ultrafast LTE wireless. iPhone 5c has the things that made iPhone 5 an amazing phone — and more, including iOS 7. All in a completely new design that feels great in your hand. </p>
238 Apple iPhone 4S Black CS-Cart P 0 <p> 16GB iPhone 4S locked AT&amp;T model. Will work on AT&amp;T. Now you can use your voice to use your iPhone. Just talk to Siri as you would to a person: "Do I need an umbrella?" or "Any great burgers around here?" or "Where's the closest ATM?" Siri not only understands what you say, it knows what you mean.1 It figures out the right apps to use to find the right answer. Then, just like a personal assistant, it answers you. Siri makes phone calls, sends messages, schedules meetings, sets reminders, and more. How much more? Just ask, and Siri tells you that, too. Two cores in the A5 chip deliver up to two times more power and up to seven times faster graphics.2 And you'll feel the effects. Fast. iPhone 4S is quick and responsive, which makes all the difference when you're launching apps, browsing the web, gaming, and doing just about everything. And no matter what you're doing, you can keep on doing it. Because the A5 chip is so power-efficient, iPhone 4S has outstanding battery life. This just might be the best camera ever on a phone. And with all-new optics, it just might be the only camera you need. Because behind every shot, you've got 8-megapixel resolution and a custom lens with a larger f/2.4 aperture. Not to mention an improved backside illumination sensor, excellent auto white balance, advanced color accuracy, face detection, and reduced motion blur. It all means that no matter how many people, how much light, and how much action you capture, everything looks exactly as it should. And just wait until you see the photos. Shoot stunning 1080p HD video everywhere you go. With all-new optics, the light is always right, the color is always vivid, and everything will look even better than you remember. Video stabilization steadies shaky shots. And you can edit video right on iPhone and share your lush life as fast as you shoot. </p>
239 Apple iPhone 4S White CS-Cart P 0 <p> 16GB iPhone 4S locked AT&amp;T model. Will work on AT&amp;T. Now you can use your voice to use your iPhone. Just talk to Siri as you would to a person: "Do I need an umbrella?" or "Any great burgers around here?" or "Where's the closest ATM?" Siri not only understands what you say, it knows what you mean.1 It figures out the right apps to use to find the right answer. Then, just like a personal assistant, it answers you. Siri makes phone calls, sends messages, schedules meetings, sets reminders, and more. How much more? Just ask, and Siri tells you that, too. Two cores in the A5 chip deliver up to two times more power and up to seven times faster graphics.2 And you'll feel the effects. Fast. iPhone 4S is quick and responsive, which makes all the difference when you're launching apps, browsing the web, gaming, and doing just about everything. And no matter what you're doing, you can keep on doing it. Because the A5 chip is so power-efficient, iPhone 4S has outstanding battery life. This just might be the best camera ever on a phone. And with all-new optics, it just might be the only camera you need. Because behind every shot, you've got 8-megapixel resolution and a custom lens with a larger f/2.4 aperture. Not to mention an improved backside illumination sensor, excellent auto white balance, advanced color accuracy, face detection, and reduced motion blur. It all means that no matter how many people, how much light, and how much action you capture, everything looks exactly as it should. And just wait until you see the photos. Shoot stunning 1080p HD video everywhere you go. With all-new optics, the light is always right, the color is always vivid, and everything will look even better than you remember. Video stabilization steadies shaky shots. And you can edit video right on iPhone and share your lush life as fast as you shoot. </p>