fix typo on categories assignment sql