SQL=select n.obra_cp, ni.referencia, ni.breve, ni.texto from obras AS n, obras_trad AS ni WHERE ni.obra_ce=n.obra_cp AND ni.idioma_ce=1 ORDER BY fecha DESC limit 0,-1 ERROR: 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 '-1' at line 1