M
Magali Mejia
Programador
No recomendado
Verificado por Whatsapp
Hola chicos, tengo un problema con la siguiente query.
MySQL ha dicho:
#1064 - 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 'UNION ALL
(' at line 1
La query es la misma que usaba hasta el dia de ayer y funcionaba bien :s
Lo paso por un analizado online de querys pero todo bien. Me ayudan porfis
HTML:
(select posts.id as post_id,posts.titulo,posts.id_cat,posts.slug,posts.id_usu,comentarios.id_post,comentarios.id_user,comentarios.id ,usuarios.usuario from comentarios join posts on posts.id=comentarios.id_post join usuarios on posts.id_usu=usuarios.id )
UNION ALL
(select posts2.id as post_id,posts2.titulo,posts2.id_cat,posts2.slug,posts2.id_usu,comentarios.id_post,comentarios.id_user,comentarios.id ,usuarios.usuario from comentarios join posts2 on posts2.id=comentarios.id_post join usuarios on posts2.id_usu=usuarios.id)
order by id desc limit 10
MySQL ha dicho:
#1064 - 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 'UNION ALL
(' at line 1
La query es la misma que usaba hasta el dia de ayer y funcionaba bien :s
Lo paso por un analizado online de querys pero todo bien. Me ayudan porfis