Category Table Smart View in MYSQL