Error desconocido
Archivo: /home/vicunatools/www/application/library/CF_5_2_0/Mw/Agent.php (línea 807)
Error [8]: Undefined index: resource_id

Excepción
Archivo: /home/vicunatools/www/application/library/ZF_1_12_3/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 /home/vicunatools/www/application/library/ZF_1_12_3/Zend/Db/Statement.php (115): Zend_Db_Statement_Mysqli->_prepare('SELECT id FROM rep_resource_versions WHERE resource_id= AND autogenerated = 0')
#1 /home/vicunatools/www/application/library/ZF_1_12_3/Zend/Db/Adapter/Mysqli.php (388): Zend_Db_Statement->__construct(Object(Zend_Db_Adapter_Mysqli), 'SELECT id FROM rep_resource_versions WHERE resource_id= AND autogenerated = 0')
#2 /home/vicunatools/www/application/library/ZF_1_12_3/Zend/Db/Adapter/Abstract.php (479): Zend_Db_Adapter_Mysqli->prepare('SELECT id FROM rep_resource_versions WHERE resource_id= AND autogenerated = 0')
#3 /home/vicunatools/www/application/library/ZF_1_12_3/Zend/Db/Adapter/Abstract.php (828): Zend_Db_Adapter_Abstract->query('SELECT id FROM rep_resource_versions WHERE resource_id= AND autogenerated = 0', Array)
#4 /home/vicunatools/www/application/library/CF_5_2_0/Mw/Agent.php (1224): Zend_Db_Adapter_Abstract->fetchOne('SELECT id FROM rep_resource_versions WHERE resource_id= AND autogenerated = 0')
#5 /home/vicunatools/www/application/library/CF_5_2_0/Mw/Agent.php (859): Mw_Agent->_getOriginalVersionId(false)
#6 /home/vicunatools/www/application/library/CF_5_2_0/Mw/Agent.php (94): Mw_Agent->_resource(Array)
#7 /home/vicunatools/www/recursos/agent.php (16): Mw_Agent->__construct(Array)
#8 {main}