thanks Ray. thats giving me an sql error which I believe is probably due to the highlighted reference here: http://prntscr.com/7g8gvp
should that be from the products or productcategories table?
I have tried replacing it with CategoryName (from productcategories) and also tried with ProductCategoryID from products but, although there is no error, no results are displayed.