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 
FROM 
  cscart_products as products 
  LEFT JOIN cscart_product_descriptions as descr1 ON descr1.product_id = products.product_id 
  AND descr1.lang_code = 'ru' 
  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 = 'ru' 
  LEFT JOIN cscart_product_popularity as popularity ON popularity.product_id = products.product_id 
WHERE 
  1 
  AND cscart_categories.category_id IN (
    1320, 554, 658, 1068, 1428, 1321, 1322, 
    1327, 1333, 1342, 1403, 555, 665, 1069, 
    1323, 1326, 1328, 1334, 1343, 666, 1070, 
    1324, 1329, 1332, 1335, 1344, 667, 796, 
    1071, 1325, 1330, 1336, 1345, 668, 1331, 
    1337, 1346, 669, 1338, 1482, 671, 1339, 
    1348, 672, 1340, 673, 674, 675, 1429, 
    676, 677, 678, 985, 1095, 1350, 1351, 
    657, 1341, 1347, 1378, 1402, 333, 1349, 
    1446
  ) 
  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 
  popularity.total desc, 
  products.product_id ASC 
LIMIT 
  7512, 24

Query time 0.21643

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "927.12"
    },
    "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",
                "status"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 1,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "0.00",
                "eval_cost": "0.10",
                "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.10",
                "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": "range",
              "possible_keys": [
                "PRIMARY",
                "c_status",
                "p_category_id",
                "storefront_id"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "category_id"
              ],
              "key_length": "3",
              "rows_examined_per_scan": 64,
              "rows_produced_per_join": 12,
              "filtered": "19.97",
              "index_condition": "(`unicomps`.`cscart_categories`.`category_id` in (1320,554,658,1068,1428,1321,1322,1327,1333,1342,1403,555,665,1069,1323,1326,1328,1334,1343,666,1070,1324,1329,1332,1335,1344,667,796,1071,1325,1330,1336,1345,668,1331,1337,1346,669,1338,1482,671,1339,1348,672,1340,673,674,675,1429,676,677,678,985,1095,1350,1351,657,1341,1347,1378,1402,333,1349,1446))",
              "cost_info": {
                "read_cost": "43.53",
                "eval_cost": "1.28",
                "prefix_cost": "44.81",
                "data_read_per_join": "52K"
              },
              "used_columns": [
                "category_id",
                "storefront_id",
                "usergroup_ids",
                "status"
              ],
              "attached_condition": "(((`unicomps`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`unicomps`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`unicomps`.`cscart_categories`.`usergroup_ids`))) and (`unicomps`.`cscart_categories`.`status` in ('A','H')) and (`unicomps`.`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": [
                "unicomps.cscart_categories.category_id"
              ],
              "rows_examined_per_scan": 274,
              "rows_produced_per_join": 3509,
              "filtered": "100.00",
              "using_index": true,
              "cost_info": {
                "read_cost": "7.18",
                "eval_cost": "350.94",
                "prefix_cost": "402.93",
                "data_read_per_join": "54K"
              },
              "used_columns": [
                "product_id",
                "category_id"
              ]
            }
          },
          {
            "table": {
              "table_name": "products",
              "access_type": "eq_ref",
              "possible_keys": [
                "PRIMARY",
                "age_verification",
                "status",
                "idx_parent_product_id",
                "usergroup_ids",
                "timestamp",
                "company_id",
                "updated_timestamp"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "product_id"
              ],
              "key_length": "3",
              "ref": [
                "unicomps.products_categories.product_id"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 314,
              "filtered": "8.98",
              "cost_info": {
                "read_cost": "0.00",
                "eval_cost": "31.50",
                "prefix_cost": "753.87",
                "data_read_per_join": "2M"
              },
              "used_columns": [
                "product_id",
                "product_type",
                "status",
                "company_id",
                "usergroup_ids",
                "parent_product_id"
              ],
              "attached_condition": "((`unicomps`.`products`.`company_id` = '1') and (`unicomps`.`products`.`parent_product_id` = 0) and ((`unicomps`.`products`.`usergroup_ids` = '') or (0 <> find_in_set(0,`unicomps`.`products`.`usergroup_ids`)) or (0 <> find_in_set(1,`unicomps`.`products`.`usergroup_ids`))) and (`unicomps`.`products`.`status` = 'A'))"
            }
          },
          {
            "table": {
              "table_name": "popularity",
              "access_type": "eq_ref",
              "possible_keys": [
                "PRIMARY",
                "total"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "product_id"
              ],
              "key_length": "3",
              "ref": [
                "unicomps.products_categories.product_id"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 314,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "0.00",
                "eval_cost": "31.50",
                "prefix_cost": "785.37",
                "data_read_per_join": "9K"
              },
              "used_columns": [
                "product_id",
                "total"
              ]
            }
          },
          {
            "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": [
                "unicomps.products_categories.product_id",
                "const"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 314,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "0.00",
                "eval_cost": "31.50",
                "prefix_cost": "816.87",
                "data_read_per_join": "1M"
              },
              "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": [
                "unicomps.products_categories.product_id"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 78,
              "filtered": "25.00",
              "using_index": true,
              "cost_info": {
                "read_cost": "78.75",
                "eval_cost": "7.87",
                "prefix_cost": "927.12",
                "data_read_per_join": "2K"
              },
              "used_columns": [
                "product_id",
                "lower_limit",
                "usergroup_id"
              ],
              "attached_condition": "((`unicomps`.`prices`.`lower_limit` = 1) and (`unicomps`.`prices`.`usergroup_id` in (0,0,1)))"
            }
          }
        ]
      }
    }
  }
}

Result

product_id product company_name product_type parent_product_id
324572 Картридж NVPRINT NV-W2211X 207X Cyan (БЕЗ ЧИПА) ( БЕЗ ГАРАНТИИ) для HP Color LaserJet M255/M282/M283 (2450k) (NV-W2211X-207XNCC) unicomps P 0
326901 Картридж G&G лазерный TK-3410 черный (15500стр.) для Kyocera Ecosys PA5000X (GG-TK3410) unicomps P 0
328055 Тонер-картридж INTEGRAL TK-5240M с чипом для KyoceraEcosys M5526cdn, M5526cdw, P5026cdn, P5026cdw пурпурный используется как TK 5240M (Европейская версия) (с чипом). Ресурс 3,000 страниц (12100318) unicomps P 0
178330 Девелопер SHARP черный для C-CUBE (до 120К) (BPGV20BA) unicomps P 0
180437 Лоток XEROX Дополнительный (500 листов) Phaser 3635/WC3550 (098N02190) unicomps P 0
204532 Картридж G&G струйный 913A черный (85мл) для HP PW 352dw/377dw/Pro 477dw/452dw (GG-L0R95AE) unicomps P 0
219115 Контейнер EPSON I/C (b) M100/105/200/205 (C13T774198) unicomps P 0
225101 Картридж HI-BLACK лазерный, CE741A для HP CLJ CP5220/5225/5225n/5225dn, C, 7,3K, ВОССТАН. (999010041) unicomps P 0
279058 Фотобарабан SHARP MX-312GR оригинал (100K) для AR5726 / AR5731 / MXM260 / MXM264N / MXM310 / MXM314N / MXM354N / AR6020 / AR6020D / AR6023D / AR6020NR / AR6023NR / AR6026NR / AR6031NR / MXM266N / MXM316N / MXM356N / AR6020V / AR6020DV / AR6023DV (MX312GR) unicomps P 0
294256 Тонер-картридж RICOH черный (black) для IM 370, IM 460 (842610) unicomps P 0
317506 Картридж CACTUS лазерный TK-5430M пурпурный (1250стр.) для Kyocera Ecosys PA2100cx/PA2100cwx/MA2100cfx/MA2100cwfx (CS-TK5430M) unicomps P 0
317917 Картридж G&G струйный пурпурный (300мл) для Canon imagePROGRAF TM-250/255/350/355 (GG-PFI321M) unicomps P 0
317925 Картридж CACTUS струйный PFI-030Y желт.пигм. (55мл) для Canon imagePROGRAF TA-20/30 (CS-PFI030Y) unicomps P 0
317927 Картридж CACTUS струйный PFI-030M пурп.пигм. (55мл) для Canon imagePROGRAF TA-20/30 (CS-PFI030M) unicomps P 0
317954 Картридж G&G лазерный TK-5370Y желтый (5000стр.) для Kyocera ECOSYS PA3500cx/MA3500cifx (GG-TK5370Y) unicomps P 0
317957 Картридж G&G лазерный TK-5370K черный (7000стр.) для Kyocera ECOSYS PA3500cx/MA3500cifx (GG-TK5370BK) unicomps P 0
319281 Тонер-картридж KYOCERA TK-1260 10 000 стр. для PA4000x/PA4000wx (1T0C150NL0) unicomps P 0
325641 МФУ RICOH MP 2014AD Монохромное а3 формата с апд (цветной сканер), дуплекс. в комплект входят девелопер (60к отп.), тонер на 4000 отп., инструкция на русском языке и наклейки на аппарат. (912356) unicomps P 0
325706 Блок проявки RICOH для моделей IMC2000-2500: черный оригинал для IMC4500-6000 (D0BK3000) unicomps P 0
19570 Тонер-картридж RICOH MPC 2551HE для Aficio MP C2051/C2551. Голубой. 9500 страниц. (842064) unicomps P 0
31825 Тонер-картридж CANON лазерный C-EXV 26 TONER M (1658B006) unicomps P 0
31826 Тонер-картридж CANON лазерный C-EXV 26 TONER Y (1657B006) unicomps P 0
154780 Картридж NVPRINT NV-C9731A Cyan (БЕЗ ГАРАНТИИ) для HP Color LaserJet 5500/ 5500DN/ 5500DTN/ 5500HDN/ 5500TDN/ 5500N/ 5550/ 5550DN/ 5550DTN/ 5550HDN/ 5550N (12000k) (NV-C9731AC) unicomps P 0
161165 Картридж NVPRINT для Xerox B1022/B1025 (13700k) (NV-006R01731) unicomps P 0