How would I select from two table where the category_id value is the same and number them? Thanks