Thanks for your advice, Rudy.
Here is the code that does what I intended:
Code:
SELECT
products.productId
, products.productTypeId
, types.moduleName
, products.workflowCode
, GROUP_CONCAT( product_properties.productPropertyId SEPARATOR ', ')
, products.active
FROM
products
INNER JOIN
product_properties
ON
product_properties.productId = products.productId
INNER JOIN
types
ON
types.productTypeId = products.productTypeId
WHERE
products.productTypeId = 3
AND
products.productId = 1
GROUP BY
products.productId
but this is just one of several levels of nesting and lookups for one product.
So the question is shifted to performance.
MySQL is good at db queries and should perform better (faster, less memory) than a series of queries from php and "gluing" the data-sets together in php, or not?
[I bought your book and will give you feedback when I start reading]
David