Catched error 406HY000: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
in /home/kropivac/public_html/protected/classes/DataBase.php on line 56.
Query: 'SELECT
tb.id,
tb.url,
tb.photo,
tb.sizes,
tb.packaged,
tb_lang.name,
tb_lang.material,
tb_lang.body_m,
price.id as price_id,
price.price,
price.code,
price.basePrice,
price.discount,
price.stock,
GROUP_CONCAT(DISTINCT pss.status_id SEPARATOR '|') AS statuses,
price.price AS price_sort,
pss.status_id,
lang_ps.name AS status FROM `product` `tb` LEFT JOIN `ru_product` tb_lang ON tb.id=tb_lang.product_id LEFT JOIN product_catalog tb3 ON tb.id = tb3.product_id
LEFT JOIN product_catalog p_cat ON p_cat.product_id=tb.id
LEFT JOIN params_product pp ON pp.product_id = tb.id
LEFT JOIN product_status_set pss ON pss.product_id = tb.id
LEFT JOIN ru_product_status lang_ps ON pss.status_id = lang_ps.product_status_id
LEFT JOIN price ON price.product_id = tb.id AND price.price_type_id = '1' WHERE tb.id!='0' AND tb3.catalog_id = '123' AND tb3.product_id != '73486' AND tb.active='1' AND tb.active='1' GROUP BY tb.id ORDER BY rand() LIMIT 4'