Array ( [0] => Zend_Db_Statement_Exception Object ( [_previous:Zend_Exception:private] => [message:protected] => SQLSTATE[42000]: Syntax error or access violation: 1064 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 `id` DESC LIMIT 1' at line 1 [string:Exception:private] => [code:protected] => 42000 [file:protected] => /var/www/library/Zend/Db/Statement/Pdo.php [line:protected] => 234 [trace:Exception:private] => Array ( [0] => Array ( [file] => /var/www/library/Zend/Db/Statement.php [line] => 300 [function] => _execute [class] => Zend_Db_Statement_Pdo [type] => -> [args] => Array ( [0] => Array ( ) ) ) [1] => Array ( [file] => /var/www/library/Zend/Db/Adapter/Abstract.php [line] => 479 [function] => execute [class] => Zend_Db_Statement [type] => -> [args] => Array ( [0] => Array ( ) ) ) [2] => Array ( [file] => /var/www/library/Zend/Db/Adapter/Pdo/Abstract.php [line] => 238 [function] => query [class] => Zend_Db_Adapter_Abstract [type] => -> [args] => Array ( [0] => Zend_Db_Table_Select Object ( [_info:protected] => Array ( [schema] => [name] => ramos_imagens [cols] => Array ( [0] => id [1] => descricao [2] => imagem [3] => ramos_id ) [primary] => Array ( [1] => id ) [metadata] => Array ( [id] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => id [COLUMN_POSITION] => 1 [DATA_TYPE] => bigint [DEFAULT] => [NULLABLE] => [LENGTH] => [SCALE] => [PRECISION] => [UNSIGNED] => 1 [PRIMARY] => 1 [PRIMARY_POSITION] => 1 [IDENTITY] => 1 ) [descricao] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => descricao [COLUMN_POSITION] => 2 [DATA_TYPE] => varchar [DEFAULT] => [NULLABLE] => [LENGTH] => 255 [SCALE] => [PRECISION] => [UNSIGNED] => [PRIMARY] => [PRIMARY_POSITION] => [IDENTITY] => ) [imagem] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => imagem [COLUMN_POSITION] => 3 [DATA_TYPE] => varchar [DEFAULT] => [NULLABLE] => [LENGTH] => 255 [SCALE] => [PRECISION] => [UNSIGNED] => [PRIMARY] => [PRIMARY_POSITION] => [IDENTITY] => ) [ramos_id] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => ramos_id [COLUMN_POSITION] => 4 [DATA_TYPE] => int [DEFAULT] => [NULLABLE] => [LENGTH] => [SCALE] => [PRECISION] => [UNSIGNED] => [PRIMARY] => [PRIMARY_POSITION] => [IDENTITY] => ) ) [rowClass] => Zend_Db_Table_Row [rowsetClass] => Zend_Db_Table_Rowset [referenceMap] => Array ( ) [dependentTables] => Array ( ) [sequence] => 1 ) [_integrityCheck:protected] => 1 [_table:protected] => RamosImagens Object ( [_name:protected] => ramos_imagens [_primary:protected] => Array ( [1] => id ) [_definition:protected] => [_definitionConfigName:protected] => [_db:protected] => Zend_Db_Adapter_Pdo_Mysql Object ( [_pdoType:protected] => mysql [_numericDataTypes:protected] => Array ( [0] => 0 [1] => 1 [2] => 2 [INT] => 0 [INTEGER] => 0 [MEDIUMINT] => 0 [SMALLINT] => 0 [TINYINT] => 0 [BIGINT] => 1 [SERIAL] => 1 [DEC] => 2 [DECIMAL] => 2 [DOUBLE] => 2 [DOUBLE PRECISION] => 2 [FIXED] => 2 [FLOAT] => 2 ) [_defaultStmtClass:protected] => Zend_Db_Statement_Pdo [_config:protected] => Array ( [host] => localhost [username] => helphome [password] => 94Db6NnYjCnBQPKM [dbname] => helphome_v2 [charset] => utf8 [persistent] => [options] => Array ( [caseFolding] => 0 [autoQuoteIdentifiers] => 1 [fetchMode] => 2 ) [driver_options] => Array ( [1002] => SET NAMES 'utf8' ) ) [_fetchMode:protected] => 2 [_profiler:protected] => Zend_Db_Profiler Object ( [_queryProfiles:protected] => Array ( ) [_enabled:protected] => [_filterElapsedSecs:protected] => [_filterTypes:protected] => ) [_defaultProfilerClass:protected] => Zend_Db_Profiler [_connection:protected] => PDO Object ( ) [_caseFolding:protected] => 0 [_autoQuoteIdentifiers:protected] => 1 [_allowSerialization:protected] => 1 [_autoReconnectOnUnserialize:protected] => ) [_schema:protected] => [_cols:protected] => Array ( [0] => id [1] => descricao [2] => imagem [3] => ramos_id ) [_identity:protected] => 1 [_sequence:protected] => 1 [_metadata:protected] => Array ( [id] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => id [COLUMN_POSITION] => 1 [DATA_TYPE] => bigint [DEFAULT] => [NULLABLE] => [LENGTH] => [SCALE] => [PRECISION] => [UNSIGNED] => 1 [PRIMARY] => 1 [PRIMARY_POSITION] => 1 [IDENTITY] => 1 ) [descricao] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => descricao [COLUMN_POSITION] => 2 [DATA_TYPE] => varchar [DEFAULT] => [NULLABLE] => [LENGTH] => 255 [SCALE] => [PRECISION] => [UNSIGNED] => [PRIMARY] => [PRIMARY_POSITION] => [IDENTITY] => ) [imagem] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => imagem [COLUMN_POSITION] => 3 [DATA_TYPE] => varchar [DEFAULT] => [NULLABLE] => [LENGTH] => 255 [SCALE] => [PRECISION] => [UNSIGNED] => [PRIMARY] => [PRIMARY_POSITION] => [IDENTITY] => ) [ramos_id] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => ramos_id [COLUMN_POSITION] => 4 [DATA_TYPE] => int [DEFAULT] => [NULLABLE] => [LENGTH] => [SCALE] => [PRECISION] => [UNSIGNED] => [PRIMARY] => [PRIMARY_POSITION] => [IDENTITY] => ) ) [_metadataCache:protected] => [_metadataCacheInClass:protected] => 1 [_rowClass:protected] => Zend_Db_Table_Row [_rowsetClass:protected] => Zend_Db_Table_Rowset [_referenceMap:protected] => Array ( ) [_dependentTables:protected] => Array ( ) [_defaultSource:protected] => defaultNone [_defaultValues:protected] => Array ( ) ) [_bind:protected] => Array ( ) [_adapter:protected] => Zend_Db_Adapter_Pdo_Mysql Object ( [_pdoType:protected] => mysql [_numericDataTypes:protected] => Array ( [0] => 0 [1] => 1 [2] => 2 [INT] => 0 [INTEGER] => 0 [MEDIUMINT] => 0 [SMALLINT] => 0 [TINYINT] => 0 [BIGINT] => 1 [SERIAL] => 1 [DEC] => 2 [DECIMAL] => 2 [DOUBLE] => 2 [DOUBLE PRECISION] => 2 [FIXED] => 2 [FLOAT] => 2 ) [_defaultStmtClass:protected] => Zend_Db_Statement_Pdo [_config:protected] => Array ( [host] => localhost [username] => helphome [password] => 94Db6NnYjCnBQPKM [dbname] => helphome_v2 [charset] => utf8 [persistent] => [options] => Array ( [caseFolding] => 0 [autoQuoteIdentifiers] => 1 [fetchMode] => 2 ) [driver_options] => Array ( [1002] => SET NAMES 'utf8' ) ) [_fetchMode:protected] => 2 [_profiler:protected] => Zend_Db_Profiler Object ( [_queryProfiles:protected] => Array ( ) [_enabled:protected] => [_filterElapsedSecs:protected] => [_filterTypes:protected] => ) [_defaultProfilerClass:protected] => Zend_Db_Profiler [_connection:protected] => PDO Object ( ) [_caseFolding:protected] => 0 [_autoQuoteIdentifiers:protected] => 1 [_allowSerialization:protected] => 1 [_autoReconnectOnUnserialize:protected] => ) [_parts:protected] => Array ( [distinct] => [columns] => Array ( [0] => Array ( [0] => ramos_imagens [1] => * [2] => ) ) [union] => Array ( ) [from] => Array ( [ramos_imagens] => Array ( [joinType] => inner join [schema] => [tableName] => ramos_imagens [joinCondition] => ) ) [where] => Array ( [0] => (ramos_id = ) ) [group] => Array ( ) [having] => Array ( ) [order] => Array ( [0] => Array ( [0] => id [1] => DESC ) ) [limitcount] => 1 [limitoffset] => 0 [forupdate] => ) [_tableCols:protected] => Array ( ) ) [1] => Array ( ) ) ) [3] => Array ( [file] => /var/www/library/Zend/Db/Table/Abstract.php [line] => 1529 [function] => query [class] => Zend_Db_Adapter_Pdo_Abstract [type] => -> [args] => Array ( [0] => Zend_Db_Table_Select Object ( [_info:protected] => Array ( [schema] => [name] => ramos_imagens [cols] => Array ( [0] => id [1] => descricao [2] => imagem [3] => ramos_id ) [primary] => Array ( [1] => id ) [metadata] => Array ( [id] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => id [COLUMN_POSITION] => 1 [DATA_TYPE] => bigint [DEFAULT] => [NULLABLE] => [LENGTH] => [SCALE] => [PRECISION] => [UNSIGNED] => 1 [PRIMARY] => 1 [PRIMARY_POSITION] => 1 [IDENTITY] => 1 ) [descricao] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => descricao [COLUMN_POSITION] => 2 [DATA_TYPE] => varchar [DEFAULT] => [NULLABLE] => [LENGTH] => 255 [SCALE] => [PRECISION] => [UNSIGNED] => [PRIMARY] => [PRIMARY_POSITION] => [IDENTITY] => ) [imagem] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => imagem [COLUMN_POSITION] => 3 [DATA_TYPE] => varchar [DEFAULT] => [NULLABLE] => [LENGTH] => 255 [SCALE] => [PRECISION] => [UNSIGNED] => [PRIMARY] => [PRIMARY_POSITION] => [IDENTITY] => ) [ramos_id] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => ramos_id [COLUMN_POSITION] => 4 [DATA_TYPE] => int [DEFAULT] => [NULLABLE] => [LENGTH] => [SCALE] => [PRECISION] => [UNSIGNED] => [PRIMARY] => [PRIMARY_POSITION] => [IDENTITY] => ) ) [rowClass] => Zend_Db_Table_Row [rowsetClass] => Zend_Db_Table_Rowset [referenceMap] => Array ( ) [dependentTables] => Array ( ) [sequence] => 1 ) [_integrityCheck:protected] => 1 [_table:protected] => RamosImagens Object ( [_name:protected] => ramos_imagens [_primary:protected] => Array ( [1] => id ) [_definition:protected] => [_definitionConfigName:protected] => [_db:protected] => Zend_Db_Adapter_Pdo_Mysql Object ( [_pdoType:protected] => mysql [_numericDataTypes:protected] => Array ( [0] => 0 [1] => 1 [2] => 2 [INT] => 0 [INTEGER] => 0 [MEDIUMINT] => 0 [SMALLINT] => 0 [TINYINT] => 0 [BIGINT] => 1 [SERIAL] => 1 [DEC] => 2 [DECIMAL] => 2 [DOUBLE] => 2 [DOUBLE PRECISION] => 2 [FIXED] => 2 [FLOAT] => 2 ) [_defaultStmtClass:protected] => Zend_Db_Statement_Pdo [_config:protected] => Array ( [host] => localhost [username] => helphome [password] => 94Db6NnYjCnBQPKM [dbname] => helphome_v2 [charset] => utf8 [persistent] => [options] => Array ( [caseFolding] => 0 [autoQuoteIdentifiers] => 1 [fetchMode] => 2 ) [driver_options] => Array ( [1002] => SET NAMES 'utf8' ) ) [_fetchMode:protected] => 2 [_profiler:protected] => Zend_Db_Profiler Object ( [_queryProfiles:protected] => Array ( ) [_enabled:protected] => [_filterElapsedSecs:protected] => [_filterTypes:protected] => ) [_defaultProfilerClass:protected] => Zend_Db_Profiler [_connection:protected] => PDO Object ( ) [_caseFolding:protected] => 0 [_autoQuoteIdentifiers:protected] => 1 [_allowSerialization:protected] => 1 [_autoReconnectOnUnserialize:protected] => ) [_schema:protected] => [_cols:protected] => Array ( [0] => id [1] => descricao [2] => imagem [3] => ramos_id ) [_identity:protected] => 1 [_sequence:protected] => 1 [_metadata:protected] => Array ( [id] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => id [COLUMN_POSITION] => 1 [DATA_TYPE] => bigint [DEFAULT] => [NULLABLE] => [LENGTH] => [SCALE] => [PRECISION] => [UNSIGNED] => 1 [PRIMARY] => 1 [PRIMARY_POSITION] => 1 [IDENTITY] => 1 ) [descricao] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => descricao [COLUMN_POSITION] => 2 [DATA_TYPE] => varchar [DEFAULT] => [NULLABLE] => [LENGTH] => 255 [SCALE] => [PRECISION] => [UNSIGNED] => [PRIMARY] => [PRIMARY_POSITION] => [IDENTITY] => ) [imagem] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => imagem [COLUMN_POSITION] => 3 [DATA_TYPE] => varchar [DEFAULT] => [NULLABLE] => [LENGTH] => 255 [SCALE] => [PRECISION] => [UNSIGNED] => [PRIMARY] => [PRIMARY_POSITION] => [IDENTITY] => ) [ramos_id] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => ramos_id [COLUMN_POSITION] => 4 [DATA_TYPE] => int [DEFAULT] => [NULLABLE] => [LENGTH] => [SCALE] => [PRECISION] => [UNSIGNED] => [PRIMARY] => [PRIMARY_POSITION] => [IDENTITY] => ) ) [_metadataCache:protected] => [_metadataCacheInClass:protected] => 1 [_rowClass:protected] => Zend_Db_Table_Row [_rowsetClass:protected] => Zend_Db_Table_Rowset [_referenceMap:protected] => Array ( ) [_dependentTables:protected] => Array ( ) [_defaultSource:protected] => defaultNone [_defaultValues:protected] => Array ( ) ) [_bind:protected] => Array ( ) [_adapter:protected] => Zend_Db_Adapter_Pdo_Mysql Object ( [_pdoType:protected] => mysql [_numericDataTypes:protected] => Array ( [0] => 0 [1] => 1 [2] => 2 [INT] => 0 [INTEGER] => 0 [MEDIUMINT] => 0 [SMALLINT] => 0 [TINYINT] => 0 [BIGINT] => 1 [SERIAL] => 1 [DEC] => 2 [DECIMAL] => 2 [DOUBLE] => 2 [DOUBLE PRECISION] => 2 [FIXED] => 2 [FLOAT] => 2 ) [_defaultStmtClass:protected] => Zend_Db_Statement_Pdo [_config:protected] => Array ( [host] => localhost [username] => helphome [password] => 94Db6NnYjCnBQPKM [dbname] => helphome_v2 [charset] => utf8 [persistent] => [options] => Array ( [caseFolding] => 0 [autoQuoteIdentifiers] => 1 [fetchMode] => 2 ) [driver_options] => Array ( [1002] => SET NAMES 'utf8' ) ) [_fetchMode:protected] => 2 [_profiler:protected] => Zend_Db_Profiler Object ( [_queryProfiles:protected] => Array ( ) [_enabled:protected] => [_filterElapsedSecs:protected] => [_filterTypes:protected] => ) [_defaultProfilerClass:protected] => Zend_Db_Profiler [_connection:protected] => PDO Object ( ) [_caseFolding:protected] => 0 [_autoQuoteIdentifiers:protected] => 1 [_allowSerialization:protected] => 1 [_autoReconnectOnUnserialize:protected] => ) [_parts:protected] => Array ( [distinct] => [columns] => Array ( [0] => Array ( [0] => ramos_imagens [1] => * [2] => ) ) [union] => Array ( ) [from] => Array ( [ramos_imagens] => Array ( [joinType] => inner join [schema] => [tableName] => ramos_imagens [joinCondition] => ) ) [where] => Array ( [0] => (ramos_id = ) ) [group] => Array ( ) [having] => Array ( ) [order] => Array ( [0] => Array ( [0] => id [1] => DESC ) ) [limitcount] => 1 [limitoffset] => 0 [forupdate] => ) [_tableCols:protected] => Array ( ) ) ) ) [4] => Array ( [file] => /var/www/library/Zend/Db/Table/Abstract.php [line] => 1344 [function] => _fetch [class] => Zend_Db_Table_Abstract [type] => -> [args] => Array ( [0] => Zend_Db_Table_Select Object ( [_info:protected] => Array ( [schema] => [name] => ramos_imagens [cols] => Array ( [0] => id [1] => descricao [2] => imagem [3] => ramos_id ) [primary] => Array ( [1] => id ) [metadata] => Array ( [id] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => id [COLUMN_POSITION] => 1 [DATA_TYPE] => bigint [DEFAULT] => [NULLABLE] => [LENGTH] => [SCALE] => [PRECISION] => [UNSIGNED] => 1 [PRIMARY] => 1 [PRIMARY_POSITION] => 1 [IDENTITY] => 1 ) [descricao] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => descricao [COLUMN_POSITION] => 2 [DATA_TYPE] => varchar [DEFAULT] => [NULLABLE] => [LENGTH] => 255 [SCALE] => [PRECISION] => [UNSIGNED] => [PRIMARY] => [PRIMARY_POSITION] => [IDENTITY] => ) [imagem] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => imagem [COLUMN_POSITION] => 3 [DATA_TYPE] => varchar [DEFAULT] => [NULLABLE] => [LENGTH] => 255 [SCALE] => [PRECISION] => [UNSIGNED] => [PRIMARY] => [PRIMARY_POSITION] => [IDENTITY] => ) [ramos_id] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => ramos_id [COLUMN_POSITION] => 4 [DATA_TYPE] => int [DEFAULT] => [NULLABLE] => [LENGTH] => [SCALE] => [PRECISION] => [UNSIGNED] => [PRIMARY] => [PRIMARY_POSITION] => [IDENTITY] => ) ) [rowClass] => Zend_Db_Table_Row [rowsetClass] => Zend_Db_Table_Rowset [referenceMap] => Array ( ) [dependentTables] => Array ( ) [sequence] => 1 ) [_integrityCheck:protected] => 1 [_table:protected] => RamosImagens Object ( [_name:protected] => ramos_imagens [_primary:protected] => Array ( [1] => id ) [_definition:protected] => [_definitionConfigName:protected] => [_db:protected] => Zend_Db_Adapter_Pdo_Mysql Object ( [_pdoType:protected] => mysql [_numericDataTypes:protected] => Array ( [0] => 0 [1] => 1 [2] => 2 [INT] => 0 [INTEGER] => 0 [MEDIUMINT] => 0 [SMALLINT] => 0 [TINYINT] => 0 [BIGINT] => 1 [SERIAL] => 1 [DEC] => 2 [DECIMAL] => 2 [DOUBLE] => 2 [DOUBLE PRECISION] => 2 [FIXED] => 2 [FLOAT] => 2 ) [_defaultStmtClass:protected] => Zend_Db_Statement_Pdo [_config:protected] => Array ( [host] => localhost [username] => helphome [password] => 94Db6NnYjCnBQPKM [dbname] => helphome_v2 [charset] => utf8 [persistent] => [options] => Array ( [caseFolding] => 0 [autoQuoteIdentifiers] => 1 [fetchMode] => 2 ) [driver_options] => Array ( [1002] => SET NAMES 'utf8' ) ) [_fetchMode:protected] => 2 [_profiler:protected] => Zend_Db_Profiler Object ( [_queryProfiles:protected] => Array ( ) [_enabled:protected] => [_filterElapsedSecs:protected] => [_filterTypes:protected] => ) [_defaultProfilerClass:protected] => Zend_Db_Profiler [_connection:protected] => PDO Object ( ) [_caseFolding:protected] => 0 [_autoQuoteIdentifiers:protected] => 1 [_allowSerialization:protected] => 1 [_autoReconnectOnUnserialize:protected] => ) [_schema:protected] => [_cols:protected] => Array ( [0] => id [1] => descricao [2] => imagem [3] => ramos_id ) [_identity:protected] => 1 [_sequence:protected] => 1 [_metadata:protected] => Array ( [id] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => id [COLUMN_POSITION] => 1 [DATA_TYPE] => bigint [DEFAULT] => [NULLABLE] => [LENGTH] => [SCALE] => [PRECISION] => [UNSIGNED] => 1 [PRIMARY] => 1 [PRIMARY_POSITION] => 1 [IDENTITY] => 1 ) [descricao] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => descricao [COLUMN_POSITION] => 2 [DATA_TYPE] => varchar [DEFAULT] => [NULLABLE] => [LENGTH] => 255 [SCALE] => [PRECISION] => [UNSIGNED] => [PRIMARY] => [PRIMARY_POSITION] => [IDENTITY] => ) [imagem] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => imagem [COLUMN_POSITION] => 3 [DATA_TYPE] => varchar [DEFAULT] => [NULLABLE] => [LENGTH] => 255 [SCALE] => [PRECISION] => [UNSIGNED] => [PRIMARY] => [PRIMARY_POSITION] => [IDENTITY] => ) [ramos_id] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => ramos_id [COLUMN_POSITION] => 4 [DATA_TYPE] => int [DEFAULT] => [NULLABLE] => [LENGTH] => [SCALE] => [PRECISION] => [UNSIGNED] => [PRIMARY] => [PRIMARY_POSITION] => [IDENTITY] => ) ) [_metadataCache:protected] => [_metadataCacheInClass:protected] => 1 [_rowClass:protected] => Zend_Db_Table_Row [_rowsetClass:protected] => Zend_Db_Table_Rowset [_referenceMap:protected] => Array ( ) [_dependentTables:protected] => Array ( ) [_defaultSource:protected] => defaultNone [_defaultValues:protected] => Array ( ) ) [_bind:protected] => Array ( ) [_adapter:protected] => Zend_Db_Adapter_Pdo_Mysql Object ( [_pdoType:protected] => mysql [_numericDataTypes:protected] => Array ( [0] => 0 [1] => 1 [2] => 2 [INT] => 0 [INTEGER] => 0 [MEDIUMINT] => 0 [SMALLINT] => 0 [TINYINT] => 0 [BIGINT] => 1 [SERIAL] => 1 [DEC] => 2 [DECIMAL] => 2 [DOUBLE] => 2 [DOUBLE PRECISION] => 2 [FIXED] => 2 [FLOAT] => 2 ) [_defaultStmtClass:protected] => Zend_Db_Statement_Pdo [_config:protected] => Array ( [host] => localhost [username] => helphome [password] => 94Db6NnYjCnBQPKM [dbname] => helphome_v2 [charset] => utf8 [persistent] => [options] => Array ( [caseFolding] => 0 [autoQuoteIdentifiers] => 1 [fetchMode] => 2 ) [driver_options] => Array ( [1002] => SET NAMES 'utf8' ) ) [_fetchMode:protected] => 2 [_profiler:protected] => Zend_Db_Profiler Object ( [_queryProfiles:protected] => Array ( ) [_enabled:protected] => [_filterElapsedSecs:protected] => [_filterTypes:protected] => ) [_defaultProfilerClass:protected] => Zend_Db_Profiler [_connection:protected] => PDO Object ( ) [_caseFolding:protected] => 0 [_autoQuoteIdentifiers:protected] => 1 [_allowSerialization:protected] => 1 [_autoReconnectOnUnserialize:protected] => ) [_parts:protected] => Array ( [distinct] => [columns] => Array ( [0] => Array ( [0] => ramos_imagens [1] => * [2] => ) ) [union] => Array ( ) [from] => Array ( [ramos_imagens] => Array ( [joinType] => inner join [schema] => [tableName] => ramos_imagens [joinCondition] => ) ) [where] => Array ( [0] => (ramos_id = ) ) [group] => Array ( ) [having] => Array ( ) [order] => Array ( [0] => Array ( [0] => id [1] => DESC ) ) [limitcount] => 1 [limitoffset] => 0 [forupdate] => ) [_tableCols:protected] => Array ( ) ) ) ) [5] => Array ( [file] => /var/www/application/modules/default/controllers/RamosDeAtividadeController.php [line] => 46 [function] => fetchAll [class] => Zend_Db_Table_Abstract [type] => -> [args] => Array ( [0] => ramos_id = [1] => id DESC [2] => 1 ) ) [6] => Array ( [file] => /var/www/library/Zend/Controller/Action.php [line] => 516 [function] => detalhesAction [class] => RamosDeAtividadeController [type] => -> [args] => Array ( ) ) [7] => Array ( [file] => /var/www/library/Zend/Controller/Dispatcher/Standard.php [line] => 295 [function] => dispatch [class] => Zend_Controller_Action [type] => -> [args] => Array ( [0] => detalhesAction ) ) [8] => Array ( [file] => /var/www/library/Zend/Controller/Front.php [line] => 954 [function] => dispatch [class] => Zend_Controller_Dispatcher_Standard [type] => -> [args] => Array ( [0] => Zend_Controller_Request_Http Object ( [_paramSources:protected] => Array ( [0] => _GET [1] => _POST ) [_requestUri:protected] => /ramos-de-atividade/detalhes/ramo/reformas-e-manutencoes-prediais-residenciais [_baseUrl:protected] => [_basePath:protected] => [_pathInfo:protected] => /ramos-de-atividade/detalhes/ramo/reformas-e-manutencoes-prediais-residenciais [_params:protected] => Array ( [controller] => ramos-de-atividade [action] => detalhes [ramo] => reformas-e-manutencoes-prediais-residenciais [module] => default [error_handler] => ArrayObject Object ( [storage:ArrayObject:private] => Array ( [exception] => Zend_Db_Statement_Exception Object *RECURSION* [type] => EXCEPTION_OTHER [request] => Zend_Controller_Request_Http Object ( [_paramSources:protected] => Array ( [0] => _GET [1] => _POST ) [_requestUri:protected] => /ramos-de-atividade/detalhes/ramo/reformas-e-manutencoes-prediais-residenciais [_baseUrl:protected] => [_basePath:protected] => [_pathInfo:protected] => /ramos-de-atividade/detalhes/ramo/reformas-e-manutencoes-prediais-residenciais [_params:protected] => Array ( [controller] => ramos-de-atividade [action] => detalhes [ramo] => reformas-e-manutencoes-prediais-residenciais [module] => default ) [_rawBody:protected] => [_aliases:protected] => Array ( ) [_dispatched:protected] => 1 [_module:protected] => default [_moduleKey:protected] => module [_controller:protected] => ramos-de-atividade [_controllerKey:protected] => controller [_action:protected] => detalhes [_actionKey:protected] => action ) ) ) ) [_rawBody:protected] => [_aliases:protected] => Array ( ) [_dispatched:protected] => 1 [_module:protected] => default [_moduleKey:protected] => module [_controller:protected] => error [_controllerKey:protected] => controller [_action:protected] => error [_actionKey:protected] => action ) [1] => Zend_Controller_Response_Http Object ( [_body:protected] => Array ( ) [_exceptions:protected] => Array *RECURSION* [_headers:protected] => Array ( ) [_headersRaw:protected] => Array ( ) [_httpResponseCode:protected] => 500 [_isRedirect:protected] => [_renderExceptions:protected] => [headersSentThrowsException] => 1 ) ) ) [9] => Array ( [file] => /var/www/library/Zend/Application/Bootstrap/Bootstrap.php [line] => 97 [function] => dispatch [class] => Zend_Controller_Front [type] => -> [args] => Array ( ) ) [10] => Array ( [file] => /var/www/library/Zend/Application.php [line] => 366 [function] => run [class] => Zend_Application_Bootstrap_Bootstrap [type] => -> [args] => Array ( ) ) [11] => Array ( [file] => /var/www/public_html/index.php [line] => 46 [function] => run [class] => Zend_Application [type] => -> [args] => Array ( ) ) ) [previous:Exception:private] => PDOException Object ( [message:protected] => SQLSTATE[42000]: Syntax error or access violation: 1064 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 `id` DESC LIMIT 1' at line 1 [string:Exception:private] => [code:protected] => 42000 [file:protected] => /var/www/library/Zend/Db/Statement/Pdo.php [line:protected] => 228 [trace:Exception:private] => Array ( [0] => Array ( [file] => /var/www/library/Zend/Db/Statement/Pdo.php [line] => 228 [function] => execute [class] => PDOStatement [type] => -> [args] => Array ( [0] => Array ( ) ) ) [1] => Array ( [file] => /var/www/library/Zend/Db/Statement.php [line] => 300 [function] => _execute [class] => Zend_Db_Statement_Pdo [type] => -> [args] => Array ( [0] => Array ( ) ) ) [2] => Array ( [file] => /var/www/library/Zend/Db/Adapter/Abstract.php [line] => 479 [function] => execute [class] => Zend_Db_Statement [type] => -> [args] => Array ( [0] => Array ( ) ) ) [3] => Array ( [file] => /var/www/library/Zend/Db/Adapter/Pdo/Abstract.php [line] => 238 [function] => query [class] => Zend_Db_Adapter_Abstract [type] => -> [args] => Array ( [0] => Zend_Db_Table_Select Object ( [_info:protected] => Array ( [schema] => [name] => ramos_imagens [cols] => Array ( [0] => id [1] => descricao [2] => imagem [3] => ramos_id ) [primary] => Array ( [1] => id ) [metadata] => Array ( [id] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => id [COLUMN_POSITION] => 1 [DATA_TYPE] => bigint [DEFAULT] => [NULLABLE] => [LENGTH] => [SCALE] => [PRECISION] => [UNSIGNED] => 1 [PRIMARY] => 1 [PRIMARY_POSITION] => 1 [IDENTITY] => 1 ) [descricao] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => descricao [COLUMN_POSITION] => 2 [DATA_TYPE] => varchar [DEFAULT] => [NULLABLE] => [LENGTH] => 255 [SCALE] => [PRECISION] => [UNSIGNED] => [PRIMARY] => [PRIMARY_POSITION] => [IDENTITY] => ) [imagem] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => imagem [COLUMN_POSITION] => 3 [DATA_TYPE] => varchar [DEFAULT] => [NULLABLE] => [LENGTH] => 255 [SCALE] => [PRECISION] => [UNSIGNED] => [PRIMARY] => [PRIMARY_POSITION] => [IDENTITY] => ) [ramos_id] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => ramos_id [COLUMN_POSITION] => 4 [DATA_TYPE] => int [DEFAULT] => [NULLABLE] => [LENGTH] => [SCALE] => [PRECISION] => [UNSIGNED] => [PRIMARY] => [PRIMARY_POSITION] => [IDENTITY] => ) ) [rowClass] => Zend_Db_Table_Row [rowsetClass] => Zend_Db_Table_Rowset [referenceMap] => Array ( ) [dependentTables] => Array ( ) [sequence] => 1 ) [_integrityCheck:protected] => 1 [_table:protected] => RamosImagens Object ( [_name:protected] => ramos_imagens [_primary:protected] => Array ( [1] => id ) [_definition:protected] => [_definitionConfigName:protected] => [_db:protected] => Zend_Db_Adapter_Pdo_Mysql Object ( [_pdoType:protected] => mysql [_numericDataTypes:protected] => Array ( [0] => 0 [1] => 1 [2] => 2 [INT] => 0 [INTEGER] => 0 [MEDIUMINT] => 0 [SMALLINT] => 0 [TINYINT] => 0 [BIGINT] => 1 [SERIAL] => 1 [DEC] => 2 [DECIMAL] => 2 [DOUBLE] => 2 [DOUBLE PRECISION] => 2 [FIXED] => 2 [FLOAT] => 2 ) [_defaultStmtClass:protected] => Zend_Db_Statement_Pdo [_config:protected] => Array ( [host] => localhost [username] => helphome [password] => 94Db6NnYjCnBQPKM [dbname] => helphome_v2 [charset] => utf8 [persistent] => [options] => Array ( [caseFolding] => 0 [autoQuoteIdentifiers] => 1 [fetchMode] => 2 ) [driver_options] => Array ( [1002] => SET NAMES 'utf8' ) ) [_fetchMode:protected] => 2 [_profiler:protected] => Zend_Db_Profiler Object ( [_queryProfiles:protected] => Array ( ) [_enabled:protected] => [_filterElapsedSecs:protected] => [_filterTypes:protected] => ) [_defaultProfilerClass:protected] => Zend_Db_Profiler [_connection:protected] => PDO Object ( ) [_caseFolding:protected] => 0 [_autoQuoteIdentifiers:protected] => 1 [_allowSerialization:protected] => 1 [_autoReconnectOnUnserialize:protected] => ) [_schema:protected] => [_cols:protected] => Array ( [0] => id [1] => descricao [2] => imagem [3] => ramos_id ) [_identity:protected] => 1 [_sequence:protected] => 1 [_metadata:protected] => Array ( [id] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => id [COLUMN_POSITION] => 1 [DATA_TYPE] => bigint [DEFAULT] => [NULLABLE] => [LENGTH] => [SCALE] => [PRECISION] => [UNSIGNED] => 1 [PRIMARY] => 1 [PRIMARY_POSITION] => 1 [IDENTITY] => 1 ) [descricao] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => descricao [COLUMN_POSITION] => 2 [DATA_TYPE] => varchar [DEFAULT] => [NULLABLE] => [LENGTH] => 255 [SCALE] => [PRECISION] => [UNSIGNED] => [PRIMARY] => [PRIMARY_POSITION] => [IDENTITY] => ) [imagem] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => imagem [COLUMN_POSITION] => 3 [DATA_TYPE] => varchar [DEFAULT] => [NULLABLE] => [LENGTH] => 255 [SCALE] => [PRECISION] => [UNSIGNED] => [PRIMARY] => [PRIMARY_POSITION] => [IDENTITY] => ) [ramos_id] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => ramos_id [COLUMN_POSITION] => 4 [DATA_TYPE] => int [DEFAULT] => [NULLABLE] => [LENGTH] => [SCALE] => [PRECISION] => [UNSIGNED] => [PRIMARY] => [PRIMARY_POSITION] => [IDENTITY] => ) ) [_metadataCache:protected] => [_metadataCacheInClass:protected] => 1 [_rowClass:protected] => Zend_Db_Table_Row [_rowsetClass:protected] => Zend_Db_Table_Rowset [_referenceMap:protected] => Array ( ) [_dependentTables:protected] => Array ( ) [_defaultSource:protected] => defaultNone [_defaultValues:protected] => Array ( ) ) [_bind:protected] => Array ( ) [_adapter:protected] => Zend_Db_Adapter_Pdo_Mysql Object ( [_pdoType:protected] => mysql [_numericDataTypes:protected] => Array ( [0] => 0 [1] => 1 [2] => 2 [INT] => 0 [INTEGER] => 0 [MEDIUMINT] => 0 [SMALLINT] => 0 [TINYINT] => 0 [BIGINT] => 1 [SERIAL] => 1 [DEC] => 2 [DECIMAL] => 2 [DOUBLE] => 2 [DOUBLE PRECISION] => 2 [FIXED] => 2 [FLOAT] => 2 ) [_defaultStmtClass:protected] => Zend_Db_Statement_Pdo [_config:protected] => Array ( [host] => localhost [username] => helphome [password] => 94Db6NnYjCnBQPKM [dbname] => helphome_v2 [charset] => utf8 [persistent] => [options] => Array ( [caseFolding] => 0 [autoQuoteIdentifiers] => 1 [fetchMode] => 2 ) [driver_options] => Array ( [1002] => SET NAMES 'utf8' ) ) [_fetchMode:protected] => 2 [_profiler:protected] => Zend_Db_Profiler Object ( [_queryProfiles:protected] => Array ( ) [_enabled:protected] => [_filterElapsedSecs:protected] => [_filterTypes:protected] => ) [_defaultProfilerClass:protected] => Zend_Db_Profiler [_connection:protected] => PDO Object ( ) [_caseFolding:protected] => 0 [_autoQuoteIdentifiers:protected] => 1 [_allowSerialization:protected] => 1 [_autoReconnectOnUnserialize:protected] => ) [_parts:protected] => Array ( [distinct] => [columns] => Array ( [0] => Array ( [0] => ramos_imagens [1] => * [2] => ) ) [union] => Array ( ) [from] => Array ( [ramos_imagens] => Array ( [joinType] => inner join [schema] => [tableName] => ramos_imagens [joinCondition] => ) ) [where] => Array ( [0] => (ramos_id = ) ) [group] => Array ( ) [having] => Array ( ) [order] => Array ( [0] => Array ( [0] => id [1] => DESC ) ) [limitcount] => 1 [limitoffset] => 0 [forupdate] => ) [_tableCols:protected] => Array ( ) ) [1] => Array ( ) ) ) [4] => Array ( [file] => /var/www/library/Zend/Db/Table/Abstract.php [line] => 1529 [function] => query [class] => Zend_Db_Adapter_Pdo_Abstract [type] => -> [args] => Array ( [0] => Zend_Db_Table_Select Object ( [_info:protected] => Array ( [schema] => [name] => ramos_imagens [cols] => Array ( [0] => id [1] => descricao [2] => imagem [3] => ramos_id ) [primary] => Array ( [1] => id ) [metadata] => Array ( [id] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => id [COLUMN_POSITION] => 1 [DATA_TYPE] => bigint [DEFAULT] => [NULLABLE] => [LENGTH] => [SCALE] => [PRECISION] => [UNSIGNED] => 1 [PRIMARY] => 1 [PRIMARY_POSITION] => 1 [IDENTITY] => 1 ) [descricao] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => descricao [COLUMN_POSITION] => 2 [DATA_TYPE] => varchar [DEFAULT] => [NULLABLE] => [LENGTH] => 255 [SCALE] => [PRECISION] => [UNSIGNED] => [PRIMARY] => [PRIMARY_POSITION] => [IDENTITY] => ) [imagem] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => imagem [COLUMN_POSITION] => 3 [DATA_TYPE] => varchar [DEFAULT] => [NULLABLE] => [LENGTH] => 255 [SCALE] => [PRECISION] => [UNSIGNED] => [PRIMARY] => [PRIMARY_POSITION] => [IDENTITY] => ) [ramos_id] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => ramos_id [COLUMN_POSITION] => 4 [DATA_TYPE] => int [DEFAULT] => [NULLABLE] => [LENGTH] => [SCALE] => [PRECISION] => [UNSIGNED] => [PRIMARY] => [PRIMARY_POSITION] => [IDENTITY] => ) ) [rowClass] => Zend_Db_Table_Row [rowsetClass] => Zend_Db_Table_Rowset [referenceMap] => Array ( ) [dependentTables] => Array ( ) [sequence] => 1 ) [_integrityCheck:protected] => 1 [_table:protected] => RamosImagens Object ( [_name:protected] => ramos_imagens [_primary:protected] => Array ( [1] => id ) [_definition:protected] => [_definitionConfigName:protected] => [_db:protected] => Zend_Db_Adapter_Pdo_Mysql Object ( [_pdoType:protected] => mysql [_numericDataTypes:protected] => Array ( [0] => 0 [1] => 1 [2] => 2 [INT] => 0 [INTEGER] => 0 [MEDIUMINT] => 0 [SMALLINT] => 0 [TINYINT] => 0 [BIGINT] => 1 [SERIAL] => 1 [DEC] => 2 [DECIMAL] => 2 [DOUBLE] => 2 [DOUBLE PRECISION] => 2 [FIXED] => 2 [FLOAT] => 2 ) [_defaultStmtClass:protected] => Zend_Db_Statement_Pdo [_config:protected] => Array ( [host] => localhost [username] => helphome [password] => 94Db6NnYjCnBQPKM [dbname] => helphome_v2 [charset] => utf8 [persistent] => [options] => Array ( [caseFolding] => 0 [autoQuoteIdentifiers] => 1 [fetchMode] => 2 ) [driver_options] => Array ( [1002] => SET NAMES 'utf8' ) ) [_fetchMode:protected] => 2 [_profiler:protected] => Zend_Db_Profiler Object ( [_queryProfiles:protected] => Array ( ) [_enabled:protected] => [_filterElapsedSecs:protected] => [_filterTypes:protected] => ) [_defaultProfilerClass:protected] => Zend_Db_Profiler [_connection:protected] => PDO Object ( ) [_caseFolding:protected] => 0 [_autoQuoteIdentifiers:protected] => 1 [_allowSerialization:protected] => 1 [_autoReconnectOnUnserialize:protected] => ) [_schema:protected] => [_cols:protected] => Array ( [0] => id [1] => descricao [2] => imagem [3] => ramos_id ) [_identity:protected] => 1 [_sequence:protected] => 1 [_metadata:protected] => Array ( [id] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => id [COLUMN_POSITION] => 1 [DATA_TYPE] => bigint [DEFAULT] => [NULLABLE] => [LENGTH] => [SCALE] => [PRECISION] => [UNSIGNED] => 1 [PRIMARY] => 1 [PRIMARY_POSITION] => 1 [IDENTITY] => 1 ) [descricao] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => descricao [COLUMN_POSITION] => 2 [DATA_TYPE] => varchar [DEFAULT] => [NULLABLE] => [LENGTH] => 255 [SCALE] => [PRECISION] => [UNSIGNED] => [PRIMARY] => [PRIMARY_POSITION] => [IDENTITY] => ) [imagem] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => imagem [COLUMN_POSITION] => 3 [DATA_TYPE] => varchar [DEFAULT] => [NULLABLE] => [LENGTH] => 255 [SCALE] => [PRECISION] => [UNSIGNED] => [PRIMARY] => [PRIMARY_POSITION] => [IDENTITY] => ) [ramos_id] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => ramos_id [COLUMN_POSITION] => 4 [DATA_TYPE] => int [DEFAULT] => [NULLABLE] => [LENGTH] => [SCALE] => [PRECISION] => [UNSIGNED] => [PRIMARY] => [PRIMARY_POSITION] => [IDENTITY] => ) ) [_metadataCache:protected] => [_metadataCacheInClass:protected] => 1 [_rowClass:protected] => Zend_Db_Table_Row [_rowsetClass:protected] => Zend_Db_Table_Rowset [_referenceMap:protected] => Array ( ) [_dependentTables:protected] => Array ( ) [_defaultSource:protected] => defaultNone [_defaultValues:protected] => Array ( ) ) [_bind:protected] => Array ( ) [_adapter:protected] => Zend_Db_Adapter_Pdo_Mysql Object ( [_pdoType:protected] => mysql [_numericDataTypes:protected] => Array ( [0] => 0 [1] => 1 [2] => 2 [INT] => 0 [INTEGER] => 0 [MEDIUMINT] => 0 [SMALLINT] => 0 [TINYINT] => 0 [BIGINT] => 1 [SERIAL] => 1 [DEC] => 2 [DECIMAL] => 2 [DOUBLE] => 2 [DOUBLE PRECISION] => 2 [FIXED] => 2 [FLOAT] => 2 ) [_defaultStmtClass:protected] => Zend_Db_Statement_Pdo [_config:protected] => Array ( [host] => localhost [username] => helphome [password] => 94Db6NnYjCnBQPKM [dbname] => helphome_v2 [charset] => utf8 [persistent] => [options] => Array ( [caseFolding] => 0 [autoQuoteIdentifiers] => 1 [fetchMode] => 2 ) [driver_options] => Array ( [1002] => SET NAMES 'utf8' ) ) [_fetchMode:protected] => 2 [_profiler:protected] => Zend_Db_Profiler Object ( [_queryProfiles:protected] => Array ( ) [_enabled:protected] => [_filterElapsedSecs:protected] => [_filterTypes:protected] => ) [_defaultProfilerClass:protected] => Zend_Db_Profiler [_connection:protected] => PDO Object ( ) [_caseFolding:protected] => 0 [_autoQuoteIdentifiers:protected] => 1 [_allowSerialization:protected] => 1 [_autoReconnectOnUnserialize:protected] => ) [_parts:protected] => Array ( [distinct] => [columns] => Array ( [0] => Array ( [0] => ramos_imagens [1] => * [2] => ) ) [union] => Array ( ) [from] => Array ( [ramos_imagens] => Array ( [joinType] => inner join [schema] => [tableName] => ramos_imagens [joinCondition] => ) ) [where] => Array ( [0] => (ramos_id = ) ) [group] => Array ( ) [having] => Array ( ) [order] => Array ( [0] => Array ( [0] => id [1] => DESC ) ) [limitcount] => 1 [limitoffset] => 0 [forupdate] => ) [_tableCols:protected] => Array ( ) ) ) ) [5] => Array ( [file] => /var/www/library/Zend/Db/Table/Abstract.php [line] => 1344 [function] => _fetch [class] => Zend_Db_Table_Abstract [type] => -> [args] => Array ( [0] => Zend_Db_Table_Select Object ( [_info:protected] => Array ( [schema] => [name] => ramos_imagens [cols] => Array ( [0] => id [1] => descricao [2] => imagem [3] => ramos_id ) [primary] => Array ( [1] => id ) [metadata] => Array ( [id] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => id [COLUMN_POSITION] => 1 [DATA_TYPE] => bigint [DEFAULT] => [NULLABLE] => [LENGTH] => [SCALE] => [PRECISION] => [UNSIGNED] => 1 [PRIMARY] => 1 [PRIMARY_POSITION] => 1 [IDENTITY] => 1 ) [descricao] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => descricao [COLUMN_POSITION] => 2 [DATA_TYPE] => varchar [DEFAULT] => [NULLABLE] => [LENGTH] => 255 [SCALE] => [PRECISION] => [UNSIGNED] => [PRIMARY] => [PRIMARY_POSITION] => [IDENTITY] => ) [imagem] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => imagem [COLUMN_POSITION] => 3 [DATA_TYPE] => varchar [DEFAULT] => [NULLABLE] => [LENGTH] => 255 [SCALE] => [PRECISION] => [UNSIGNED] => [PRIMARY] => [PRIMARY_POSITION] => [IDENTITY] => ) [ramos_id] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => ramos_id [COLUMN_POSITION] => 4 [DATA_TYPE] => int [DEFAULT] => [NULLABLE] => [LENGTH] => [SCALE] => [PRECISION] => [UNSIGNED] => [PRIMARY] => [PRIMARY_POSITION] => [IDENTITY] => ) ) [rowClass] => Zend_Db_Table_Row [rowsetClass] => Zend_Db_Table_Rowset [referenceMap] => Array ( ) [dependentTables] => Array ( ) [sequence] => 1 ) [_integrityCheck:protected] => 1 [_table:protected] => RamosImagens Object ( [_name:protected] => ramos_imagens [_primary:protected] => Array ( [1] => id ) [_definition:protected] => [_definitionConfigName:protected] => [_db:protected] => Zend_Db_Adapter_Pdo_Mysql Object ( [_pdoType:protected] => mysql [_numericDataTypes:protected] => Array ( [0] => 0 [1] => 1 [2] => 2 [INT] => 0 [INTEGER] => 0 [MEDIUMINT] => 0 [SMALLINT] => 0 [TINYINT] => 0 [BIGINT] => 1 [SERIAL] => 1 [DEC] => 2 [DECIMAL] => 2 [DOUBLE] => 2 [DOUBLE PRECISION] => 2 [FIXED] => 2 [FLOAT] => 2 ) [_defaultStmtClass:protected] => Zend_Db_Statement_Pdo [_config:protected] => Array ( [host] => localhost [username] => helphome [password] => 94Db6NnYjCnBQPKM [dbname] => helphome_v2 [charset] => utf8 [persistent] => [options] => Array ( [caseFolding] => 0 [autoQuoteIdentifiers] => 1 [fetchMode] => 2 ) [driver_options] => Array ( [1002] => SET NAMES 'utf8' ) ) [_fetchMode:protected] => 2 [_profiler:protected] => Zend_Db_Profiler Object ( [_queryProfiles:protected] => Array ( ) [_enabled:protected] => [_filterElapsedSecs:protected] => [_filterTypes:protected] => ) [_defaultProfilerClass:protected] => Zend_Db_Profiler [_connection:protected] => PDO Object ( ) [_caseFolding:protected] => 0 [_autoQuoteIdentifiers:protected] => 1 [_allowSerialization:protected] => 1 [_autoReconnectOnUnserialize:protected] => ) [_schema:protected] => [_cols:protected] => Array ( [0] => id [1] => descricao [2] => imagem [3] => ramos_id ) [_identity:protected] => 1 [_sequence:protected] => 1 [_metadata:protected] => Array ( [id] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => id [COLUMN_POSITION] => 1 [DATA_TYPE] => bigint [DEFAULT] => [NULLABLE] => [LENGTH] => [SCALE] => [PRECISION] => [UNSIGNED] => 1 [PRIMARY] => 1 [PRIMARY_POSITION] => 1 [IDENTITY] => 1 ) [descricao] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => descricao [COLUMN_POSITION] => 2 [DATA_TYPE] => varchar [DEFAULT] => [NULLABLE] => [LENGTH] => 255 [SCALE] => [PRECISION] => [UNSIGNED] => [PRIMARY] => [PRIMARY_POSITION] => [IDENTITY] => ) [imagem] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => imagem [COLUMN_POSITION] => 3 [DATA_TYPE] => varchar [DEFAULT] => [NULLABLE] => [LENGTH] => 255 [SCALE] => [PRECISION] => [UNSIGNED] => [PRIMARY] => [PRIMARY_POSITION] => [IDENTITY] => ) [ramos_id] => Array ( [SCHEMA_NAME] => [TABLE_NAME] => ramos_imagens [COLUMN_NAME] => ramos_id [COLUMN_POSITION] => 4 [DATA_TYPE] => int [DEFAULT] => [NULLABLE] => [LENGTH] => [SCALE] => [PRECISION] => [UNSIGNED] => [PRIMARY] => [PRIMARY_POSITION] => [IDENTITY] => ) ) [_metadataCache:protected] => [_metadataCacheInClass:protected] => 1 [_rowClass:protected] => Zend_Db_Table_Row [_rowsetClass:protected] => Zend_Db_Table_Rowset [_referenceMap:protected] => Array ( ) [_dependentTables:protected] => Array ( ) [_defaultSource:protected] => defaultNone [_defaultValues:protected] => Array ( ) ) [_bind:protected] => Array ( ) [_adapter:protected] => Zend_Db_Adapter_Pdo_Mysql Object ( [_pdoType:protected] => mysql [_numericDataTypes:protected] => Array ( [0] => 0 [1] => 1 [2] => 2 [INT] => 0 [INTEGER] => 0 [MEDIUMINT] => 0 [SMALLINT] => 0 [TINYINT] => 0 [BIGINT] => 1 [SERIAL] => 1 [DEC] => 2 [DECIMAL] => 2 [DOUBLE] => 2 [DOUBLE PRECISION] => 2 [FIXED] => 2 [FLOAT] => 2 ) [_defaultStmtClass:protected] => Zend_Db_Statement_Pdo [_config:protected] => Array ( [host] => localhost [username] => helphome [password] => 94Db6NnYjCnBQPKM [dbname] => helphome_v2 [charset] => utf8 [persistent] => [options] => Array ( [caseFolding] => 0 [autoQuoteIdentifiers] => 1 [fetchMode] => 2 ) [driver_options] => Array ( [1002] => SET NAMES 'utf8' ) ) [_fetchMode:protected] => 2 [_profiler:protected] => Zend_Db_Profiler Object ( [_queryProfiles:protected] => Array ( ) [_enabled:protected] => [_filterElapsedSecs:protected] => [_filterTypes:protected] => ) [_defaultProfilerClass:protected] => Zend_Db_Profiler [_connection:protected] => PDO Object ( ) [_caseFolding:protected] => 0 [_autoQuoteIdentifiers:protected] => 1 [_allowSerialization:protected] => 1 [_autoReconnectOnUnserialize:protected] => ) [_parts:protected] => Array ( [distinct] => [columns] => Array ( [0] => Array ( [0] => ramos_imagens [1] => * [2] => ) ) [union] => Array ( ) [from] => Array ( [ramos_imagens] => Array ( [joinType] => inner join [schema] => [tableName] => ramos_imagens [joinCondition] => ) ) [where] => Array ( [0] => (ramos_id = ) ) [group] => Array ( ) [having] => Array ( ) [order] => Array ( [0] => Array ( [0] => id [1] => DESC ) ) [limitcount] => 1 [limitoffset] => 0 [forupdate] => ) [_tableCols:protected] => Array ( ) ) ) ) [6] => Array ( [file] => /var/www/application/modules/default/controllers/RamosDeAtividadeController.php [line] => 46 [function] => fetchAll [class] => Zend_Db_Table_Abstract [type] => -> [args] => Array ( [0] => ramos_id = [1] => id DESC [2] => 1 ) ) [7] => Array ( [file] => /var/www/library/Zend/Controller/Action.php [line] => 516 [function] => detalhesAction [class] => RamosDeAtividadeController [type] => -> [args] => Array ( ) ) [8] => Array ( [file] => /var/www/library/Zend/Controller/Dispatcher/Standard.php [line] => 295 [function] => dispatch [class] => Zend_Controller_Action [type] => -> [args] => Array ( [0] => detalhesAction ) ) [9] => Array ( [file] => /var/www/library/Zend/Controller/Front.php [line] => 954 [function] => dispatch [class] => Zend_Controller_Dispatcher_Standard [type] => -> [args] => Array ( [0] => Zend_Controller_Request_Http Object ( [_paramSources:protected] => Array ( [0] => _GET [1] => _POST ) [_requestUri:protected] => /ramos-de-atividade/detalhes/ramo/reformas-e-manutencoes-prediais-residenciais [_baseUrl:protected] => [_basePath:protected] => [_pathInfo:protected] => /ramos-de-atividade/detalhes/ramo/reformas-e-manutencoes-prediais-residenciais [_params:protected] => Array ( [controller] => ramos-de-atividade [action] => detalhes [ramo] => reformas-e-manutencoes-prediais-residenciais [module] => default [error_handler] => ArrayObject Object ( [storage:ArrayObject:private] => Array ( [exception] => Zend_Db_Statement_Exception Object *RECURSION* [type] => EXCEPTION_OTHER [request] => Zend_Controller_Request_Http Object ( [_paramSources:protected] => Array ( [0] => _GET [1] => _POST ) [_requestUri:protected] => /ramos-de-atividade/detalhes/ramo/reformas-e-manutencoes-prediais-residenciais [_baseUrl:protected] => [_basePath:protected] => [_pathInfo:protected] => /ramos-de-atividade/detalhes/ramo/reformas-e-manutencoes-prediais-residenciais [_params:protected] => Array ( [controller] => ramos-de-atividade [action] => detalhes [ramo] => reformas-e-manutencoes-prediais-residenciais [module] => default ) [_rawBody:protected] => [_aliases:protected] => Array ( ) [_dispatched:protected] => 1 [_module:protected] => default [_moduleKey:protected] => module [_controller:protected] => ramos-de-atividade [_controllerKey:protected] => controller [_action:protected] => detalhes [_actionKey:protected] => action ) ) ) ) [_rawBody:protected] => [_aliases:protected] => Array ( ) [_dispatched:protected] => 1 [_module:protected] => default [_moduleKey:protected] => module [_controller:protected] => error [_controllerKey:protected] => controller [_action:protected] => error [_actionKey:protected] => action ) [1] => Zend_Controller_Response_Http Object ( [_body:protected] => Array ( ) [_exceptions:protected] => Array *RECURSION* [_headers:protected] => Array ( ) [_headersRaw:protected] => Array ( ) [_httpResponseCode:protected] => 500 [_isRedirect:protected] => [_renderExceptions:protected] => [headersSentThrowsException] => 1 ) ) ) [10] => Array ( [file] => /var/www/library/Zend/Application/Bootstrap/Bootstrap.php [line] => 97 [function] => dispatch [class] => Zend_Controller_Front [type] => -> [args] => Array ( ) ) [11] => Array ( [file] => /var/www/library/Zend/Application.php [line] => 366 [function] => run [class] => Zend_Application_Bootstrap_Bootstrap [type] => -> [args] => Array ( ) ) [12] => Array ( [file] => /var/www/public_html/index.php [line] => 46 [function] => run [class] => Zend_Application [type] => -> [args] => Array ( ) ) ) [previous:Exception:private] => [errorInfo] => Array ( [0] => 42000 [1] => 1064 [2] => 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 `id` DESC LIMIT 1' at line 1 ) ) ) )