Excepción
Archivo: /usr/home/coitma/www/application/library/ZF_1_11_15/Zend/Db/Statement/Mysqli.php (línea 77)
Error [1064]: Mysqli prepare 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 'AND autogenerated = 0' at line 1
Traza:
#0 /usr/home/coitma/www/application/library/ZF_1_11_15/Zend/Db/Statement.php (115): Zend_Db_Statement_Mysqli->_prepare('SELECT id FROM rep_resource_versions WHERE resource_id= AND autogenerated = 0')
#1 /usr/home/coitma/www/application/library/ZF_1_11_15/Zend/Db/Adapter/Mysqli.php (381): Zend_Db_Statement->__construct(Object(Zend_Db_Adapter_Mysqli), 'SELECT id FROM rep_resource_versions WHERE resource_id= AND autogenerated = 0')
#2 /usr/home/coitma/www/application/library/ZF_1_11_15/Zend/Db/Adapter/Abstract.php (478): Zend_Db_Adapter_Mysqli->prepare('SELECT id FROM rep_resource_versions WHERE resource_id= AND autogenerated = 0')
#3 /usr/home/coitma/www/application/library/ZF_1_11_15/Zend/Db/Adapter/Abstract.php (827): Zend_Db_Adapter_Abstract->query('SELECT id FROM rep_resource_versions WHERE resource_id= AND autogenerated = 0', Array)
#4 /usr/home/coitma/www/application/library/CF_5_1_1/Mw/Agent.php (1090): Zend_Db_Adapter_Abstract->fetchOne('SELECT id FROM rep_resource_versions WHERE resource_id= AND autogenerated = 0')
#5 /usr/home/coitma/www/application/library/CF_5_1_1/Mw/Agent.php (743): Mw_Agent->_getOriginalVersionId(false)
#6 /usr/home/coitma/www/application/library/CF_5_1_1/Mw/Agent.php (87): Mw_Agent->_resource(Array)
#7 /usr/home/coitma/www/recursos/agent.php (45): Mw_Agent->__construct(Array)
#8 {main}