Error mysql:

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 'limit 1' at line 1 Array ( [0] => Array ( [file] => /home/icardimx/public_html/clases/data.php [line] => 44 [function] => error [class] => data [object] => data Object ( [hosting] => [usuario] => [contrasena] => [nombrebd] => icardimx_icardi [conexion] => Resource id #5 ) [type] => -> [args] => Array ( [0] => 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 'limit 1' at line 1 ) ) [1] => Array ( [file] => /home/icardimx/public_html/conveniodetalle.php [line] => 13 [function] => query [class] => data [object] => data Object ( [hosting] => [usuario] => [contrasena] => [nombrebd] => icardimx_icardi [conexion] => Resource id #5 ) [type] => -> [args] => Array ( [0] => select * from convenios where convenio_id= limit 1 ) ) )
Documento sin título