Доброе время суток форумчане!

Возникла такая беда,появилась ошибка на главной stiliagi.com.ua в популярных товарах...


Бедный студент

get_template_vars('product'); $sql = "select concat(a.`code`, b.`code`, c.`code`, d.`code`) as path from (SELECT p.`id_product`, sx.`code` FROM `ps_product` p left join `ps_product_attribute` pa on pa.`id_product` = p.`id_product` inner join `ps_product_attribute_combination` pac on pac.`id_product_attribute` = pa.`id_product_attribute` inner join `sync_xml` sx on sx.`id_attribute` = pac.`id_attribute` WHERE pa.`default_on` = 1 and sx.`grade` = 1) a inner join (SELECT p.`id_product`, sx.`code` FROM `ps_product` p left join `ps_product_attribute` pa on pa.`id_product` = p.`id_product` inner join `ps_product_attribute_combination` pac on pac.`id_product_attribute` = pa.`id_product_attribute` inner join `sync_xml` sx on sx.`id_attribute` = pac.`id_attribute` WHERE pa.`default_on` = 1 and sx.`grade` = 2) b on b.`id_product` = a.`id_product` inner join (SELECT p.`id_product`, sx.`code` FROM `ps_product` p left join `ps_product_attribute` pa on pa.`id_product` = p.`id_product` inner join `ps_product_attribute_combination` pac on pac.`id_product_attribute` = pa.`id_product_attribute` inner join `sync_xml` sx on sx.`id_attribute` = pac.`id_attribute` WHERE pa.`default_on` = 1 and sx.`grade` = 3) c on c.`id_product` = b.`id_product` inner join (SELECT p.`id_product`, sx.`code` FROM `ps_product` p left join `ps_product_attribute` pa on pa.`id_product` = p.`id_product` inner join `ps_product_attribute_combination` pac on pac.`id_product_attribute` = pa.`id_product_attribute` inner join `sync_xml` sx on sx.`id_attribute` = pac.`id_attribute` WHERE pa.`default_on` = 1 and sx.`grade` = 4) d on d.`id_product` = c.`id_product` where a.`id_product` = ".(int)$id_prod[id_product]; $res = mysql_query($sql); $numb = mysql_numrows($res); if ($numb > 0) { $pathtxt = mysql_result($res,0,"path"); } else $pathtxt = "0001fm"; ?>

Как решить эту проблему?!

За ранее благодарен за Ваше внимание и помощь)))