error1: 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 'and m.titulo = ''
group by m.titulo_final order by m.orden asc' at line 4 sql= select m.*, c.maps from modelos m join pais p join ciudad c
on p.nombre = ''
and m.id_prod =
and m.titulo = ''
group by m.titulo_final order by m.orden asc