Prepared statements i getCategories()