$q=mysql_query("SELECT t1.id as id, t1.price, t1.group_id, t1.name, t1.description, t2.parent_id, t2.name as group_name, t3.file FROM `rcvostok_product` t1 inner join `rcvostok_product_group` t2 on (t1.group_id = t2.id) inner join `rcvostok_product_image` t3 on (t1.id = t3.product_id) ORDER BY t3.product_id ASC LIMIT 0, 200");
$row = mysql_fetch_array($q);
echo $row;