MySQL Query Error: SELECT COUNT('x') as C FROM b_iblock B INNER JOIN b_lang L ON B.LID=L.LID INNER JOIN b_iblock_element BE ON BE.IBLOCK_ID = B.ID INNER JOIN b_iblock_element_prop_s7 FPS0 ON FPS0.IBLOCK_ELEMENT_ID = BE.ID LEFT JOIN b_iblock_element BE0 ON BE0.ID = FPS0.PROPERTY_109 AND ((BE.WF_STATUS_ID=1 AND BE.WF_PARENT_ELEMENT_ID IS NULL)) LEFT JOIN b_iblock_element BE1 ON BE1.ID = FPS0.PROPERTY_110 AND ((BE.WF_STATUS_ID=1 AND BE.WF_PARENT_ELEMENT_ID IS NULL)) LEFT JOIN b_iblock_element BE2 ON BE2.ID = FPS0.PROPERTY_33 AND ((BE.WF_STATUS_ID=1 AND BE.WF_PARENT_ELEMENT_ID IS NULL)) LEFT JOIN b_iblock_element BE3 ON BE3.ID = FPS0.PROPERTY_380 AND ((BE.WF_STATUS_ID=1 AND BE.WF_PARENT_ELEMENT_ID IS NULL)) LEFT JOIN b_iblock_property JFP0 ON JFP0.IBLOCK_ID = BE2.IBLOCK_ID AND JFP0.CODE='P_OSP_FLAG' LEFT JOIN b_iblock_element_property JFPV0 ON JFPV0.IBLOCK_PROPERTY_ID = JFP0.ID AND JFPV0.IBLOCK_ELEMENT_ID = BE2.ID left join b_catalog_product CAT_PR on (CAT_PR.ID = BE.ID) left join b_catalog_iblock CAT_IB on ((CAT_PR.VAT_ID IS NULL OR CAT_PR.VAT_ID = 0) AND CAT_IB.IBLOCK_ID = BE.IBLOCK_ID) left join b_catalog_vat CAT_VAT on (CAT_VAT.ID = IF((CAT_PR.VAT_ID IS NULL OR CAT_PR.VAT_ID = 0), CAT_IB.VAT_ID, CAT_PR.VAT_ID)) WHERE 1=1 AND ( ((((BE.IBLOCK_ID = '7')))) AND ((((BE.ACTIVE='Y')))) AND ( ( ((((FPS0.PROPERTY_79 = '967')))) AND ((( BE2.CODE IS NULL OR NOT (BE2.CODE LIKE 'bisomor')))) AND (BE.IN_SECTIONS<>'N') ) OR ( ((( BE2.CODE IS NULL OR NOT (BE2.CODE LIKE 'bisomor')))) AND (( EXISTS ( SELECT BSE.IBLOCK_ELEMENT_ID FROM b_iblock_section_element BSE INNER JOIN b_iblock_section BS ON BSE.IBLOCK_SECTION_ID = BS.ID WHERE BSE.IBLOCK_ELEMENT_ID = BE.ID AND ((BS.ID IN (89323))) ))) ) ) AND ((((CAT_PR.AVAILABLE='Y')))) AND ( (BE.ID IN ( SELECT FPS0.PROPERTY_19 FROM b_iblock B INNER JOIN b_lang L ON B.LID=L.LID INNER JOIN b_iblock_element BE ON BE.IBLOCK_ID = B.ID INNER JOIN b_iblock_element_prop_s10 FPS0 ON FPS0.IBLOCK_ELEMENT_ID = BE.ID left join b_catalog_product CAT_PR on (CAT_PR.ID = BE.ID) left join b_catalog_iblock CAT_IB on ((CAT_PR.VAT_ID IS NULL OR CAT_PR.VAT_ID = 0) AND CAT_IB.IBLOCK_ID = BE.IBLOCK_ID) left join b_catalog_vat CAT_VAT on (CAT_VAT.ID = IF((CAT_PR.VAT_ID IS NULL OR CAT_PR.VAT_ID = 0), CAT_IB.VAT_ID, CAT_PR.VAT_ID)) WHERE 1=1 AND ( ((((BE.IBLOCK_ID = '10')))) AND ((((CAT_PR.QUANTITY > '0')))) AND ((((BE.ACTIVE='Y')))) AND ( ( ((((FPS0.PROPERTY_31 > '2021-09-17')))) ) OR ( ((( FPS0.PROPERTY_156 IS NULL OR NOT (FPS0.PROPERTY_156 = '1')))) AND ((((FPS0.PROPERTY_31 IS NULL OR length(FPS0.PROPERTY_31)<=0)))) ) ) ) AND (((BE.WF_STATUS_ID=1 AND BE.WF_PARENT_ELEMENT_ID IS NULL))) AND (((FPS0.PROPERTY_19 IS NOT NULL))) )) ) AND ((((B.IBLOCK_TYPE_ID = 'products')))) ) AND (((BE.WF_STATUS_ID=1 AND BE.WF_PARENT_ELEMENT_ID IS NULL))) [[2006] MySQL server has gone away]

DB query error.
Please try later.