Error en select a.*,b.der_acce,b.der_alta,b.der_baja,b.der_modi,b.der_impr,b.der_esta from derechospos a,usuadere b where a.der_id=1159 and a.der_id=b.der_id and b.usu_id= order by a.der_orden: 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.der_orden' at line 1