SELECT t.*
FROM lh_tag t
JOIN lh_noticias_tag nt
ON t.id = nt.id_tag
WHERE nt.id_noticia =
ORDER BY t.tag ASC
Erro-> You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY t.tag ASC' at line 7