Error en SELECT urlcomarcas.urlcomarca, tcomarca.idComarca, tcomarca.nombreComarca FROM tcomarca INNER JOIN urlcomarcas ON tcomarca.idComarca = urlcomarcas.idComarca WHERE tcomarca.idComarca = : 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 '' at line 4