error en query: SELECT a.id_trimestre_anio,b.fecha_acuse FROM cnspf_instituciones a,relacion_producto_trimestre b WHERE b.id_relacion_trimestre_anio=a.id_trimestre_anio AND b.id_nombre_producto=a.id_nombre_producto AND a.id_nombre_producto= ORDER BY 1 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 'ORDER BY 1' at line 1*1064