DB: Error en consulta "SELECT plantillas.archivo FROM paginas INNER JOIN plantillas ON paginas.id_plantilla=plantillas.id_plantilla WHERE id_pagina=" -> You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 4.