1064 - 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 'OR tp.id_secorigen=0) AND tpd.seccion_seo="trabajos-realizados" AND tpd.id_idiom' at line 4

SELECT tpd.id_seccion FROM secciones_noticias tp INNER JOIN secciones_noticias_desc tpd ON tp.id_seccion = tpd.id_seccion WHERE (tp.id_secorigen= OR tp.id_secorigen=0) AND tpd.seccion_seo="trabajos-realizados" AND tpd.id_idioma=1

[TEP STOP]