DB Query Error
select count(*) as record_count from 3ppp3_products p, fotocharlyat_products sp, 3ppp3_products_models pm, 3ppp3_products_prices pp, 3ppp3_products_descriptions pd, 3ppp3_products_groups pg where sp.country = 3 AND pp.product = p.id and p.id = sp.id and pm.product = p.id and pd.product = p.id and pg.product = p.id and pp.currency = 2 and pd.language = 1 and pg.`group`=1 and pm.modelgroup = 'DeskJet D' and pm.seperator = ' ' and pm.model = '4360' and pm.oem = 'HP'
MySQL server has gone away
array(1) {
  [0]=>
  array(7) {
    ["file"]=>
    string(48) "/var/www/clients/client34/web111/web/handler.php"
    ["line"]=>
    int(1047)
    ["function"]=>
    string(8) "DB_query"
    ["class"]=>
    string(2) "DB"
    ["object"]=>
    object(DB)#2 (1) {
      ["db_handle"]=>
      resource(2) of type (mysql link)
    }
    ["type"]=>
    string(2) "->"
    ["args"]=>
    array(1) {
      [0]=>
      &string(559) "select count(*) as record_count  from 3ppp3_products  p, fotocharlyat_products sp, 3ppp3_products_models  pm, 3ppp3_products_prices pp, 3ppp3_products_descriptions pd, 3ppp3_products_groups pg
					 where  sp.country = 3 AND pp.product = p.id
						and p.id = sp.id
					 	and pm.product = p.id
						and pd.product = p.id
						and pg.product = p.id
						and pp.currency = 2
						and pd.language = 1
						and pg.`group`=1
						and pm.modelgroup = 'DeskJet D'
											and pm.seperator = ' '
											and pm.model = '4360'
						and pm.oem = 'HP'"
    }
  }
}