string(2447) "SELECT COUNT(*) FROM (`Message247` AS a ) LEFT JOIN `Subdivision` AS `sub` ON sub.`Subdivision_ID` = a.`Subdivision_ID` LEFT JOIN `Sub_Class` AS `cc` ON cc.`Sub_Class_ID` = a.`Sub_Class_ID` LEFT JOIN `Classificator_Vendor` AS `tbl605` ON a.`Vendor` = tbl605.`Vendor_ID` LEFT JOIN `Classificator_ShopCurrency` AS `tbl615` ON a.`Currency` = tbl615.`ShopCurrency_ID` LEFT JOIN `Classificator_ShopCurrency` AS `tbl617` ON a.`CurrencyMinimum` = tbl617.`ShopCurrency_ID` LEFT JOIN `Classificator_ShopUnits` AS `tbl618` ON a.`Units` = tbl618.`ShopUnits_ID` LEFT JOIN `Classificator_vidy_materialov` AS `tbl635` ON a.`param_vidy_materialov` = tbl635.`vidy_materialov_ID` LEFT JOIN `Classificator_Material_armatury` AS `tbl640` ON a.`param_Material_armatury` = tbl640.`Material_armatury_ID` LEFT JOIN `Classificator_Material_plafonov` AS `tbl641` ON a.`param_Material_plafonov` = tbl641.`Material_plafonov_ID` LEFT JOIN `Classificator_Mesto_ustanovki` AS `tbl642` ON a.`param_Mesto_ustanovki` = tbl642.`Mesto_ustanovki_ID` LEFT JOIN `Classificator_stepen_zaschity` AS `tbl647` ON a.`param_stepen_zaschity` = tbl647.`stepen_zaschity_ID` LEFT JOIN `Classificator_style` AS `tbl648` ON a.`param_style` = tbl648.`style_ID` LEFT JOIN `Classificator_Country` AS `tbl649` ON a.`param_Country` = tbl649.`Country_ID` LEFT JOIN `Classificator_sfera_primeneniya` AS `tbl650` ON a.`param_sfera_primeneniya` = tbl650.`sfera_primeneniya_ID` LEFT JOIN `Classificator_tip_lampy_osnovnoy` AS `tbl651` ON a.`param_tip_lampy_osnovnoy` = tbl651.`tip_lampy_osnovnoy_ID` LEFT JOIN `Classificator_tip_tsokolya` AS `tbl652` ON a.`param_tip_tsokolya` = tbl652.`tip_tsokolya_ID` LEFT JOIN `Classificator_forma_plafona` AS `tbl653` ON a.`param_forma_plafona` = tbl653.`forma_plafona_ID` LEFT JOIN `Classificator_tsvet` AS `tbl654` ON a.`param_tsvet` = tbl654.`tsvet_ID` LEFT JOIN `Classificator_tsvet_armatury` AS `tbl655` ON a.`param_tsvet_armatury` = tbl655.`tsvet_armatury_ID` LEFT JOIN `Classificator_tsvet_plafonov` AS `tbl657` ON a.`param_tsvet_plafonov` = tbl657.`tsvet_plafonov_ID` LEFT JOIN `Classificator_interrior` AS `tbl663` ON a.`param_interrior` = tbl663.`interrior_ID` LEFT JOIN `Classificator_tip_lampy_dop` AS `tbl664` ON a.`param_tip_lampy_dop` = tbl664.`tip_lampy_dop_ID` WHERE (1 AND a.`Parent_Message_ID` = '0' AND 1=1 AND sub.`Catalogue_ID` = '1' AND a.`Checked` = 1 )" Каталог