Instead of working for the System, Let the System work for You .....

2006 MySQL server has gone away
in:
[select count(*) as total from products_options popt, products_attributes patrib where patrib.products_id='52' and patrib.options_id = popt.products_options_id and popt.language_id = '1' limit 1]