select friendly_url, id_portada_padre from cms_portadas_edicionv2 where id_portada_edicion= - 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 1