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 6 SELECT S.FDESCRI, S.FCODMAD, S.FTEXTO, (SELECT COUNT(A.FNUMIMG) FROM GAL_ARCH A WHERE A.FSUBGAL=S.FSUBGAL) AS CANTFOTOS FROM GAL_SUBG S WHERE S.FSUBGAL= 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 S.FORDEN ASC' at line 13 SELECT S.FSUBGAL, S.FDESCRI, (SELECT A.FRUTA FROM GAL_ARCH A LEFT OUTER JOIN GAL_SUBG G ON G.FSUBGAL=A.FSUBGAL LEFT OUTER JOIN GAL_SUBG G2 ON G2.FSUBGAL=G.FCODMAD WHERE G.FSUBGAL=S.FSUBGAL OR G.FCODMAD=S.FSUBGAL OR G2.FSUBGAL=S.FSUBGAL ORDER BY G.FORDEN ASC, G2.FORDEN ASC, A.FORDEN ASC LIMIT 1) AS FOTO FROM GAL_SUBG S WHERE S.FCODMAD= ORDER BY S.FORDEN ASC 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 A.FORDEN ASC LIMIT 0,12' at line 7 SELECT A.FNUMIMG, A.FRUTA, A.FDESCRI, A.FTIPO FROM GAL_ARCH A WHERE A.FSUBGAL= ORDER BY A.FORDEN ASC LIMIT 0,12 MGALLERY VIEWER
  Volver