Array ( [0] => HY000 [1] => 2006 [2] => MySQL server has gone away ) select *, (products.TOTAL_QUANTITY - products.RESERVED) as CAN_BUY from ( select products.ID, products.NAME as NAME, products.CODE as CODE, products.TOTAL_QUANTITY as TOTAL_QUANTITY, products.RESERVED as RESERVED, products.PRICE as PRICE,product_filters.S_PRICE as S_PRICE_SORT from gxvg_products as products left join gxvg_categories as categories on categories.ID = products.CATEGORY_ID left join gxvg_product_filters as product_filters on product_filters.ID = products.ID where (products.PRICE<= "0" ) and (products.PRICE>= "0" ) and (categories.ID= "676" ) and (products.TOTAL_QUANTITY> "0" ) and (products.NO_SHOW!= "Y" ) and (products.ID!= "240163" ) and (categories.ACTIVE = "Y") and (products.TOTAL_QUANTITY - products.RESERVED > 0) ) as products order by RAND() limit 10 ;Array ( [0] => HY000 [1] => 2006 [2] => MySQL server has gone away ) select TYPE, TABLE_NAME, FIELD_NAME, DESCRIPTION from gxvg_fields_type where TABLE_NAME = 'company' ;Array ( [0] => HY000 [1] => 2006 [2] => MySQL server has gone away ) select count(s1.ID) as cnt from gxvg_block_company as s1 join gxvg_block_company_fields as s2 on s1.ID = s2.ID limit 1 ;Array ( [0] => HY000 [1] => 2006 [2] => MySQL server has gone away ) select s1.ID as ID, s1.CODE, s1.NAME, from gxvg_block_company as s1 join gxvg_block_company_fields as s2 on s1.ID = s2.ID ;Array ( [0] => HY000 [1] => 2006 [2] => MySQL server has gone away ) select TYPE, TABLE_NAME, FIELD_NAME, DESCRIPTION from gxvg_fields_type where TABLE_NAME = 'projects' ;Array ( [0] => HY000 [1] => 2006 [2] => MySQL server has gone away ) select count(s1.ID) as cnt from gxvg_block_projects as s1 join gxvg_block_projects_fields as s2 on s1.ID = s2.ID limit 1 ;Array ( [0] => HY000 [1] => 2006 [2] => MySQL server has gone away ) select s1.ID as ID, s1.CODE, s1.NAME, from gxvg_block_projects as s1 join gxvg_block_projects_fields as s2 on s1.ID = s2.ID ;Array ( [0] => HY000 [1] => 2006 [2] => MySQL server has gone away ) select FIELD_NAME from gxvg_fields_type where TABLE_NAME = 'categories' ;Array ( [0] => HY000 [1] => 2006 [2] => MySQL server has gone away ) select ID, NAME, SORT, CODE, PARENT_ID, DESCRIPTION, PICTURE, ACTIVE, DISABLED_COMMENT, REL_CANONICAL, MINI_PICTURE, CALK, NAME_VP from gxvg_categories WHERE CODE = 'kriogennaya-plita-56mm-0n9a-gost-19903-2006' AND ACTIVE = "Y" LIMIT 1 ;Array ( [0] => HY000 [1] => 2006 [2] => MySQL server has gone away ) select products.ID, (TOTAL_QUANTITY - RESERVED) as CAN_BUY, products.NAME as NAME, products.PRICE as PRICE, products.CODE as CODE, products.TOTAL_QUANTITY as TOTAL_QUANTITY, products.ARTICLE as ARTICLE, products.PICTURE as PICTURE, products.DESCRIPTION as DESCRIPTION, products.CATEGORY_ID as CATEGORY, products.CATEGORIES as CATEGORIES, products.EXT_ID as EXT_ID, products.RESERVED as RESERVED, products.UNIT as UNIT, products.UNIT_RATE as UNIT_RATE, products.DATE_ADDED as DATE_ADDED, products.VAT as VAT, products.ACTIVE as ACTIVE, products.SEO_TITLE as SEO_TITLE, products.SEO_H1 as SEO_H1, products.SEO_DESCRIPTION as SEO_DESCRIPTION, products.NO_SHOW as NO_SHOW from gxvg_products as products left join gxvg_categories as categories on categories.ID = products.CATEGORY_ID where products.CODE = 'kriogennaya-plita-56mm-0n9a-gost-19903-2006' limit 1 ;