SELECT cped.value, cped.store_id FROM eav_entity_type eet JOIN eav_attribute ea ON eet.entity_type_id = ea.entity_type_id AND ea.attribute_code = 'price' AND eet.entity_type_code = 'catalog_product' JOIN catalog_product_entity_decimal cped ON ea.attribute_id = cped.attribute_id WHERE cped.entity_id = 167 FROM eav_entity_type eet JOIN eav_attribute ea ON eet.entity_type_id = ea.entity_type_id AND ea.attribute_code = 'price' AND eet.entity_type_code = 'catalog_product' JOIN catalog_product_entity_decimal cped ON ea.attribute_id = cped.attribute_id WHERE cped.entity_id = [id_produktu]