SELECT DISTINCT no_en_menu, categoria, categoria_url_amigable
FROM categorias_textos, categorias_textos_i18n
WHERE categorias_textos.id_categoria = categorias_textos_i18n.id_categoria
AND categorias_textos_i18n.id_categoria = 5AND id_i18n = 1
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 'id_i18n = 1' at line 4