SELECT 
  SQL_CALC_FOUND_ROWS products.product_id, 
  IF(
    shared_descr.product_id IS NOT NULL, 
    shared_descr.product, descr1.product
  ) as product, 
  companies.company as company_name, 
  products.product_type, 
  products.parent_product_id, 
  cscart_ec_table_booking_system.booking_type as booking_type 
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) 
  LEFT JOIN cscart_ult_product_descriptions shared_descr ON shared_descr.product_id = products.product_id 
  AND shared_descr.company_id = 1 
  AND shared_descr.lang_code = 'en' 
  LEFT JOIN cscart_ec_table_booking_system ON cscart_ec_table_booking_system.product_id = products.product_id 
WHERE 
  1 
  AND cscart_categories.category_id IN (
    166, 165, 167, 168, 169, 170, 171, 172, 
    174, 175, 176, 177, 178, 179, 180, 181, 
    182, 199, 185, 186, 187, 188, 189, 190, 
    191, 194, 193, 195, 196, 197, 198, 200, 
    201, 202, 234, 235, 236, 237, 238, 240, 
    254, 255, 263
  ) 
  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 
GROUP BY 
  products.product_id 
ORDER BY 
  product asc, 
  products.product_id ASC 
LIMIT 
  0, 96

Query time 0.00261

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "23.85"
    },
    "ordering_operation": {
      "using_filesort": true,
      "grouping_operation": {
        "using_temporary_table": true,
        "using_filesort": false,
        "nested_loop": [
          {
            "table": {
              "table_name": "companies",
              "access_type": "system",
              "possible_keys": [
                "PRIMARY"
              ],
              "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": "5K"
              },
              "used_columns": [
                "company_id",
                "status",
                "company"
              ]
            }
          },
          {
            "table": {
              "table_name": "shared_descr",
              "access_type": "system",
              "possible_keys": [
                "PRIMARY",
                "product_id",
                "company_id"
              ],
              "rows_examined_per_scan": 0,
              "rows_produced_per_join": 1,
              "filtered": "0.00",
              "const_row_not_found": true,
              "cost_info": {
                "read_cost": "0.00",
                "eval_cost": "0.20",
                "prefix_cost": "0.00",
                "data_read_per_join": "3K"
              },
              "used_columns": [
                "product_id",
                "lang_code",
                "company_id",
                "product"
              ]
            }
          },
          {
            "table": {
              "table_name": "cscart_categories",
              "access_type": "ALL",
              "possible_keys": [
                "PRIMARY",
                "c_status",
                "p_category_id"
              ],
              "rows_examined_per_scan": 83,
              "rows_produced_per_join": 1,
              "filtered": "2.07",
              "cost_info": {
                "read_cost": "19.74",
                "eval_cost": "0.34",
                "prefix_cost": "20.08",
                "data_read_per_join": "4K"
              },
              "used_columns": [
                "category_id",
                "storefront_id",
                "usergroup_ids",
                "status"
              ],
              "attached_condition": "((`atulecarter_atul_demo5`.`cscart_categories`.`category_id` in (166,165,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,199,185,186,187,188,189,190,191,194,193,195,196,197,198,200,201,202,234,235,236,237,238,240,254,255,263)) and ((`atulecarter_atul_demo5`.`cscart_categories`.`usergroup_ids` = '') or find_in_set(0,`atulecarter_atul_demo5`.`cscart_categories`.`usergroup_ids`) or find_in_set(1,`atulecarter_atul_demo5`.`cscart_categories`.`usergroup_ids`)) and (`atulecarter_atul_demo5`.`cscart_categories`.`status` in ('A','H')) and (`atulecarter_atul_demo5`.`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": [
                "atulecarter_atul_demo5.cscart_categories.category_id"
              ],
              "rows_examined_per_scan": 2,
              "rows_produced_per_join": 3,
              "filtered": "100.00",
              "using_index": true,
              "cost_info": {
                "read_cost": "1.79",
                "eval_cost": "0.69",
                "prefix_cost": "22.56",
                "data_read_per_join": "55"
              },
              "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_demo5.products_categories.product_id"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 0,
              "filtered": "9.56",
              "cost_info": {
                "read_cost": "0.00",
                "eval_cost": "0.07",
                "prefix_cost": "23.25",
                "data_read_per_join": "1K"
              },
              "used_columns": [
                "product_id",
                "product_type",
                "status",
                "company_id",
                "usergroup_ids",
                "parent_product_id"
              ],
              "attached_condition": "((`atulecarter_atul_demo5`.`products`.`company_id` = '1') and (`atulecarter_atul_demo5`.`products`.`parent_product_id` = 0) and ((`atulecarter_atul_demo5`.`products`.`usergroup_ids` = '') or find_in_set(0,`atulecarter_atul_demo5`.`products`.`usergroup_ids`) or find_in_set(1,`atulecarter_atul_demo5`.`products`.`usergroup_ids`)) and (`atulecarter_atul_demo5`.`products`.`status` = 'A'))"
            }
          },
          {
            "table": {
              "table_name": "cscart_ec_table_booking_system",
              "access_type": "eq_ref",
              "possible_keys": [
                "PRIMARY"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "product_id"
              ],
              "key_length": "4",
              "ref": [
                "atulecarter_atul_demo5.products_categories.product_id"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 0,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "0.00",
                "eval_cost": "0.07",
                "prefix_cost": "23.31",
                "data_read_per_join": "57"
              },
              "used_columns": [
                "product_id",
                "booking_type"
              ],
              "attached_condition": "<if>(is_not_null_compl(cscart_ec_table_booking_system), (`atulecarter_atul_demo5`.`cscart_ec_table_booking_system`.`product_id` = `atulecarter_atul_demo5`.`products_categories`.`product_id`), true)"
            }
          },
          {
            "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_demo5.products_categories.product_id",
                "const"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 0,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "0.00",
                "eval_cost": "0.07",
                "prefix_cost": "23.38",
                "data_read_per_join": "1K"
              },
              "used_columns": [
                "product_id",
                "lang_code",
                "product"
              ]
            }
          },
          {
            "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_demo5.products_categories.product_id"
              ],
              "rows_examined_per_scan": 2,
              "rows_produced_per_join": 0,
              "filtered": "92.12",
              "using_index": true,
              "cost_info": {
                "read_cost": "0.34",
                "eval_cost": "0.12",
                "prefix_cost": "23.85",
                "data_read_per_join": "14"
              },
              "used_columns": [
                "product_id",
                "lower_limit",
                "usergroup_id"
              ],
              "attached_condition": "((`atulecarter_atul_demo5`.`prices`.`lower_limit` = 1) and (`atulecarter_atul_demo5`.`prices`.`usergroup_id` in (0,0,1)))"
            }
          }
        ]
      }
    }
  }
}

Result

product_id product company_name product_type parent_product_id booking_type
148 16GB A Series Walkman Video MP3 CS-Cart P 0 R
180 18-55mm Portrait Lens CS-Cart P 0
18 3D Blu-ray Disc™ Player (BD-D7000) CS-Cart P 0
16 3D Blu-ray Disc™ Player (BD-D7500) CS-Cart P 0
4 40" Class (40.0" Diag.) LED 5003 Series TV CS-Cart P 0
5 46" Class (45.9" Diag.) LCD 610 Series TV CS-Cart P 0
23 5.1 Channel Blu-ray 3D Home Theater System CS-Cart P 0
24 5.1 Channel Blu-ray 3D Home Theater System CS-Cart P 0
1 65" Class (64.5" Diag.) LED 8000 Series Smart TV CS-Cart P 0
22 7.1 Channel Blu-ray 3D Home Theater System CS-Cart P 0
149 8GB E Series Walkman Video MP3 CS-Cart P 0
227 Acer 3D Series HN274H bmiiid CS-Cart P 0
190 AF-S DX NIKKOR 10-24mm f/3.5-4.5G ED CS-Cart P 0
189 AF-S NIKKOR 14-24mm f/2.8G ED CS-Cart P 0
245 Apple - iPhone 5c 32GB Cell Phone - Green CS-Cart P 0
238 Apple iPhone 4S Black CS-Cart P 0
239 Apple iPhone 4S White CS-Cart P 0
242 Apple iPod Classic Black CS-Cart P 0
243 Apple iPod Classic White CS-Cart P 0
241 Apple® - iPad® with Retina® display Wi-Fi - 32GB - White CS-Cart P 0
240 Apple® - iPad® with Retina® display Wi-Fi - 64GB - Black CS-Cart P 0
214 ASUS CP6130 CS-Cart P 0
217 ASUS CP6230 CS-Cart P 0
218 ASUS Essentio CP1130 CS-Cart P 0
207 Asus USB-N53 CS-Cart P 0
59 AVH-P4400BH CS-Cart P 0
58 AVH-P8400BH CS-Cart P 0
60 AVIC-Z130BT CS-Cart P 0
172 Compact Full HD Camcorder CS-Cart P 0
134 Creative ZEN Style M300 MP3 Player 16GB (Black) CS-Cart P 0
135 Creative ZEN Touch 2 MP3 Player 8GB (Black) CS-Cart P 0
168 D300S (Body Only) CS-Cart P 0
167 D3100 + 18-55 VR Lens Kit CS-Cart P 0
169 D5100 + AF-S DX NIKKOR 18-55mm f/3.5-5.6G VR Lens Kit CS-Cart P 0
42 DEH-1300MP CS-Cart P 0
39 DEH-80PRS CS-Cart P 0
40 DEH-P8400BH CS-Cart P 0
205 DIR-657 HD Media Router 1000 CS-Cart P 0
37 DPX308U CS-Cart P 0
74 Droid 3 CS-Cart P 0
73 DROID BIONIC CS-Cart P 0
71 DROID INCREDIBLE 2 CS-Cart P 0
75 DROID PRO CS-Cart P 0
72 DROID RAZR CS-Cart P 0
70 EVO Design 4G CS-Cart P 0
156 Extra Bass Headphones – 70mm CS-Cart P 0
175 F50 Flash Memory 52x Zoom Camcorder (Silver) CS-Cart P 0
43 FH-P8000BT CS-Cart P 0
76 FLIPSIDE with MOTOBLUR CS-Cart P 0
56 GM-6500F CS-Cart P 0
57 GM-D8500M CS-Cart P 0
30 GO 2535 TM WTE CS-Cart P 0
246 GoPro - Hero3+ Black Edition Camera CS-Cart P 0
208 H.264 Megapixel Surveillance Camera TL-SC3430 CS-Cart P 0
173 H300 Long Zoom Compact Full HD Camcorder (Black) CS-Cart P 0
229 HP 2711x 27" LED Monitor CS-Cart P 0
211 HP Officejet Pro 8600 Premium e-All-in-One Printer CS-Cart P 0
210 HP Photosmart Plus e-All-in-One Printer - B210a CS-Cart P 0
209 HP Scanjet G3110 Scanner CS-Cart P 0
67 HTC Wildfire S - White (T-Mobile) CS-Cart P 0
25 HW-D7000 AV Receiver with built-in Blu-ray Disc® Player CS-Cart P 0
213 Intel® Boxed Intel® Core™ i7-2600 CS-Cart P 0
215 Intel® Core™ i7 processor Extreme Edition 980X – i7-980X CS-Cart P 0
226 Intel® Core™ i7 Processor i7-950 CS-Cart P 0
154 JR900 Wireless Headphones CS-Cart P 0
53 KFC-W3012 CS-Cart P 0
52 KFC-W3013PS CS-Cart P 0
228 LG D2342P-PN CS-Cart P 0
161 MV800 16.1 Megapixel MultiView Compact Digital Camera CS-Cart P 0
165 Nikon 1 J1 One-Lens Kit White CS-Cart P 0
166 Nikon 1 J1 Two-Lens Wide Angle Kit Red CS-Cart P 0
86 Nokia 700 CS-Cart P 0
106 Nokia E5-00 CS-Cart P 0
105 Nokia Lumia 800 CS-Cart P 0
247 Nokia N1 Pad 7.9" Quad-Core 64bit 2.3GHz 2GB 32GB Android 5.0 CS-Cart P 0
101 Nokia X3-02 CS-Cart P 0
33 nüvi® 2455LT CS-Cart P 0
32 nüvi® 3450 CS-Cart P 0
163 NX200 20.3 Megapixel Compact System Camera CS-Cart P 0
244 Packard Bell OneTwo CS-Cart P 0
212 Panasonic KX-MB2000 24PPM 3-in-1 Monochrome Laser MFP CS-Cart P 0
155 Porta Pro KTC On-Ear Headphone CS-Cart P 0
55 PRS-D800 CS-Cart P 0
69 Rhyme CS-Cart P 0
206 RT-N66U Dual-Band Wireless-N900 Gigabit Router CS-Cart P 0
184 Samsung 30mm NX Pancake Lens CS-Cart P 0
183 Samsung 50-200mm NX Telephoto OIS Lens CS-Cart P 0
133 Samsung Galaxy Player 4.0 CS-Cart P 0
132 Samsung Galaxy Player 5.0 CS-Cart P 0
125 Samsung Galaxy S II CS-Cart P 0
120 Samsung Galaxy S II, Epic 4G Touch (Black) CS-Cart P 0
223 Samsung Galaxy Tab 8.9 (Wi-Fi Only) - 32GB Metallic Gray CS-Cart P 0
225 Samsung Galaxy Tab™ 7.0" (Verizon) CS-Cart P 0
224 Samsung Galaxy Tab™ 8.9 (AT&T) CS-Cart P 0
146 Sansa Clip+ MP3 Player (Blue) - 4GB CS-Cart P 0
147 Sansa Clip+ MP3 Player (Red) - 4GB CS-Cart P 0