Error en Consulta MySql del Sitio: foxtransformadores.com

Consulta:
SELECT
COUNT(ProductosCategorias.idCategoria) as total,
ProductosCategorias.idCategoria,
ProductosCategorias.nombre
FROM ProductosCategorias
RIGHT JOIN Productos ON ProductosCategorias.idCategoria = Productos.idCategoria 
WHERE (ProductosCategorias.idCategoria2 = 4 OR ProductosCategorias.idCategoria = 4)
AND ProductosCategorias.habilitado = 'si' AND Productos.habilitado = 'si'
GROUP BY ProductosCategorias.nombre ASC

Archivo: /index.php
Cadena GET: parametros=productos
Error: 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 'ASC' at line 9: 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 'ASC' at line 9
Fecha:29/03/2024
Hora:12:54
Archivo:/productos
Ip:172.70.134.101
Navegador:claudebot

Error en Consulta MySql del Sitio: foxtransformadores.com

Consulta:
SELECT
COUNT(ProductosCategorias.idCategoria) as total,
ProductosCategorias.idCategoria,
ProductosCategorias.nombre
FROM ProductosCategorias
RIGHT JOIN Productos ON ProductosCategorias.idCategoria = Productos.idCategoria 
WHERE (ProductosCategorias.idCategoria2 = 4 OR ProductosCategorias.idCategoria = 4)
AND ProductosCategorias.habilitado = 'si' AND Productos.habilitado = 'si'
GROUP BY ProductosCategorias.nombre ASC

Archivo: /index.php
Cadena GET: parametros=productos
Error: 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 'ASC' at line 9: 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 'ASC' at line 9
Fecha:29/03/2024
Hora:12:54
Archivo:/productos
Ip:172.70.134.101
Navegador:claudebot