Cytat
SELECT
`catalog_product_entity`.*,
`price`.`value` as `price`,
`name`.`value` as `name`,
FROM
`catalog_product_entity`
/* product price */
left outer join `catalog_product_entity_decimal` as `price`
on (`catalog_product_entity`.`entity_id` = `price`.`entity_id` and
`price`.`store_id` = '.$store_id.' and
`price`.`attribute_id` = '.$product_attribute_list['price']['attribute_id'].')
/* product name */
left outer join `catalog_product_entity_varchar` as `name`
on (`catalog_product_entity`.`entity_id` = `name`.`entity_id` and
`name`.`store_id` = '.$store_id.' and
`name`.`attribute_id` = '.$product_attribute_list['name']['attribute_id'].')
`catalog_product_entity`.*,
`price`.`value` as `price`,
`name`.`value` as `name`,
FROM
`catalog_product_entity`
/* product price */
left outer join `catalog_product_entity_decimal` as `price`
on (`catalog_product_entity`.`entity_id` = `price`.`entity_id` and
`price`.`store_id` = '.$store_id.' and
`price`.`attribute_id` = '.$product_attribute_list['price']['attribute_id'].')
/* product name */
left outer join `catalog_product_entity_varchar` as `name`
on (`catalog_product_entity`.`entity_id` = `name`.`entity_id` and
`name`.`store_id` = '.$store_id.' and
`name`.`attribute_id` = '.$product_attribute_list['name']['attribute_id'].')