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 'AND eo.id_orden= co.id_orden AND t.id_iniciativa=eo.id_elemento AND t.id_congre' at line 1