Ошибка в запросе: SELECT parent FROM categories WHERE id=183187,183184,183166,183149,183150,182970 (You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '183184,183166,183149,183150,182970' at line 1)