dont edit the code, edit the recordset and use the following SQL:
SELECT CategoryID, CategoryName, products.ProductCategoryID FROM productcategories INNER JOIN products ON ProductCategoryID = CategoryID WHERE CategoryID = paramCatID
variables:
name: paramCatID
type: integer
default value: -1
Run Time value: $_GET['CategoryID']