Modified query to correctly pull category name for product when retrieving product from DB