SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "AND" LINE 11: AND c.tipo = 3 ^
Array
(
    [0] => Array
        (
            [file] => /usr/share/php/Zend/Db/Statement.php
            [line] => 300
            [function] => _execute
            [class] => Zend_Db_Statement_Pdo
            [type] => ->
            [args] => Array
                (
                    [0] => Array
                        (
                        )

                )

        )

    [1] => Array
        (
            [file] => /usr/share/php/Zend/Db/Adapter/Abstract.php
            [line] => 479
            [function] => execute
            [class] => Zend_Db_Statement
            [type] => ->
            [args] => Array
                (
                    [0] => Array
                        (
                        )

                )

        )

    [2] => Array
        (
            [file] => /usr/share/php/Zend/Db/Adapter/Pdo/Abstract.php
            [line] => 238
            [function] => query
            [class] => Zend_Db_Adapter_Abstract
            [type] => ->
            [args] => Array
                (
                    [0] => select c.*, f.path
FROM festival.contenuti as c
LEFT JOIN netring._tab_file AS f ON c.immagine = f.cod_file   ,     
festival.edizioni as e
WHERE 
e.id = c.edizione
AND e.lingua = 'en'
AND c.pubblica IS TRUE
AND e.pubblica IS TRUE
AND e.id = 
AND c.tipo = 3
                    [1] => Array
                        (
                        )

                )

        )

    [3] => Array
        (
            [file] => /usr/share/php/Zend/Db/Adapter/Abstract.php
            [line] => 736
            [function] => query
            [class] => Zend_Db_Adapter_Pdo_Abstract
            [type] => ->
            [args] => Array
                (
                    [0] => select c.*, f.path
FROM festival.contenuti as c
LEFT JOIN netring._tab_file AS f ON c.immagine = f.cod_file   ,     
festival.edizioni as e
WHERE 
e.id = c.edizione
AND e.lingua = 'en'
AND c.pubblica IS TRUE
AND e.pubblica IS TRUE
AND e.id = 
AND c.tipo = 3
                    [1] => Array
                        (
                        )

                )

        )

    [4] => Array
        (
            [file] => /var/www/criminologia/wre_festival/library/PagePart/Locations.php
            [line] => 61
            [function] => fetchAll
            [class] => Zend_Db_Adapter_Abstract
            [type] => ->
            [args] => Array
                (
                    [0] => select c.*, f.path
FROM festival.contenuti as c
LEFT JOIN netring._tab_file AS f ON c.immagine = f.cod_file   ,     
festival.edizioni as e
WHERE 
e.id = c.edizione
AND e.lingua = 'en'
AND c.pubblica IS TRUE
AND e.pubblica IS TRUE
AND e.id = 
AND c.tipo = 3
                )

        )

    [5] => Array
        (
            [file] => /var/www/criminologia/wre_festival/library/PageComposer/PageComposer.php
            [line] => 139
            [function] => requestProcessing
            [class] => Locations
            [type] => ->
            [args] => Array
                (
                    [0] => Array
                        (
                        )

                )

        )

    [6] => Array
        (
            [file] => /var/www/criminologia/wre_festival/library/PageComposer/PageComposer.php
            [line] => 83
            [function] => runPageParts
            [class] => PageComposer
            [type] => ->
            [args] => Array
                (
                    [0] => Array
                        (
                            [0] => Locations Object
                                (
                                    [db] => Zend_Db_Adapter_Pdo_Pgsql Object
                                        (
                                            [_pdoType:protected] => pgsql
                                            [_numericDataTypes:protected] => Array
                                                (
                                                    [0] => 0
                                                    [1] => 1
                                                    [2] => 2
                                                    [INTEGER] => 0
                                                    [SERIAL] => 0
                                                    [SMALLINT] => 0
                                                    [BIGINT] => 1
                                                    [BIGSERIAL] => 1
                                                    [DECIMAL] => 2
                                                    [DOUBLE PRECISION] => 2
                                                    [NUMERIC] => 2
                                                    [REAL] => 2
                                                )

                                            [_defaultStmtClass:protected] => Zend_Db_Statement_Pdo
                                            [_config:protected] => Array
                                                (
                                                    [host] => 127.0.0.1
                                                    [dbname] => criminologiadb2018
                                                    [username] => nr_admin
                                                    [password] => ciFIll2etK2g5e8b6WFe
                                                    [port] => 5432
                                                    [charset] => 
                                                    [persistent] => 
                                                    [options] => Array
                                                        (
                                                            [caseFolding] => 0
                                                            [autoQuoteIdentifiers] => 1
                                                            [fetchMode] => 2
                                                        )

                                                    [driver_options] => Array
                                                        (
                                                        )

                                                )

                                            [_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] => 
                                        )

                                    [name] => mainContent
                                    [pageReg:protected] => PageRegistry Object
                                        (
                                            [inPageScope] => Array
                                                (
                                                    [currentPageName] => 
                                                )

                                            [ZSession] => Zend_Session_Namespace Object
                                                (
                                                    [_namespace:protected] => ZScope
                                                )

                                        )

                                    [redirectioURL:protected] => 
                                    [config:protected] => Zend_Config_Xml Object
                                        (
                                            [_skipExtends:protected] => 
                                            [_allowModifications:protected] => 
                                            [_index:protected] => 0
                                            [_count:protected] => 2
                                            [_data:protected] => Array
                                                (
                                                    [arguments] => 
                                                    [templates] => Zend_Config Object
                                                        (
                                                            [_allowModifications:protected] => 
                                                            [_index:protected] => 0
                                                            [_count:protected] => 2
                                                            [_data:protected] => Array
                                                                (
                                                                    [header] => Zend_Config Object
                                                                        (
                                                                            [_allowModifications:protected] => 
                                                                            [_index:protected] => 0
                                                                            [_count:protected] => 3
                                                                            [_data:protected] => Array
                                                                                (
                                                                                    [loc] => it
                                                                                    [path] => it/pagepart/locations.tpl.htm
                                                                                    [default] => true
                                                                                )

                                                                            [_skipNextIteration:protected] => 
                                                                            [_loadedSection:protected] => 
                                                                            [_extends:protected] => Array
                                                                                (
                                                                                )

                                                                            [_loadFileErrorStr:protected] => 
                                                                        )

                                                                    [en] => Zend_Config Object
                                                                        (
                                                                            [_allowModifications:protected] => 
                                                                            [_index:protected] => 0
                                                                            [_count:protected] => 2
                                                                            [_data:protected] => Array
                                                                                (
                                                                                    [loc] => en
                                                                                    [path] => en/pagepart/locations.tpl.htm
                                                                                )

                                                                            [_skipNextIteration:protected] => 
                                                                            [_loadedSection:protected] => 
                                                                            [_extends:protected] => Array
                                                                                (
                                                                                )

                                                                            [_loadFileErrorStr:protected] => 
                                                                        )

                                                                )

                                                            [_skipNextIteration:protected] => 
                                                            [_loadedSection:protected] => 
                                                            [_extends:protected] => Array
                                                                (
                                                                )

                                                            [_loadFileErrorStr:protected] => 
                                                        )

                                                )

                                            [_skipNextIteration:protected] => 
                                            [_loadedSection:protected] => private
                                            [_extends:protected] => Array
                                                (
                                                )

                                            [_loadFileErrorStr:protected] => 
                                        )

                                    [templateName:protected] => en
                                    [renderValues:protected] => Array
                                        (
                                            [lingua] => en
                                            [cont] => Array
                                                (
                                                    [titolo] => Locations
                                                    [sottotitolo] => Location of the festival
                                                    [testo] => 
                                                )

                                            [elenco] => Array
                                                (
                                                )

                                            [anno] => 
                                        )

                                    [args:protected] => Array
                                        (
                                        )

                                )

                            [1] => Meta Object
                                (
                                    [db] => Zend_Db_Adapter_Pdo_Pgsql Object
                                        (
                                            [_pdoType:protected] => pgsql
                                            [_numericDataTypes:protected] => Array
                                                (
                                                    [0] => 0
                                                    [1] => 1
                                                    [2] => 2
                                                    [INTEGER] => 0
                                                    [SERIAL] => 0
                                                    [SMALLINT] => 0
                                                    [BIGINT] => 1
                                                    [BIGSERIAL] => 1
                                                    [DECIMAL] => 2
                                                    [DOUBLE PRECISION] => 2
                                                    [NUMERIC] => 2
                                                    [REAL] => 2
                                                )

                                            [_defaultStmtClass:protected] => Zend_Db_Statement_Pdo
                                            [_config:protected] => Array
                                                (
                                                    [host] => 127.0.0.1
                                                    [dbname] => criminologiadb2018
                                                    [username] => nr_admin
                                                    [password] => ciFIll2etK2g5e8b6WFe
                                                    [port] => 5432
                                                    [charset] => 
                                                    [persistent] => 
                                                    [options] => Array
                                                        (
                                                            [caseFolding] => 0
                                                            [autoQuoteIdentifiers] => 1
                                                            [fetchMode] => 2
                                                        )

                                                    [driver_options] => Array
                                                        (
                                                        )

                                                )

                                            [_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] => 
                                        )

                                    [name] => meta
                                    [pageReg:protected] => PageRegistry Object
                                        (
                                            [inPageScope] => Array
                                                (
                                                    [currentPageName] => 
                                                )

                                            [ZSession] => Zend_Session_Namespace Object
                                                (
                                                    [_namespace:protected] => ZScope
                                                )

                                        )

                                    [redirectioURL:protected] => 
                                    [config:protected] => Zend_Config_Xml Object
                                        (
                                            [_skipExtends:protected] => 
                                            [_allowModifications:protected] => 
                                            [_index:protected] => 0
                                            [_count:protected] => 2
                                            [_data:protected] => Array
                                                (
                                                    [arguments] => 
                                                    [templates] => Zend_Config Object
                                                        (
                                                            [_allowModifications:protected] => 
                                                            [_index:protected] => 0
                                                            [_count:protected] => 1
                                                            [_data:protected] => Array
                                                                (
                                                                    [header] => Zend_Config Object
                                                                        (
                                                                            [_allowModifications:protected] => 
                                                                            [_index:protected] => 0
                                                                            [_count:protected] => 2
                                                                            [_data:protected] => Array
                                                                                (
                                                                                    [loc] => it
                                                                                    [path] => it/pagepart/meta.tpl.htm
                                                                                )

                                                                            [_skipNextIteration:protected] => 
                                                                            [_loadedSection:protected] => 
                                                                            [_extends:protected] => Array
                                                                                (
                                                                                )

                                                                            [_loadFileErrorStr:protected] => 
                                                                        )

                                                                )

                                                            [_skipNextIteration:protected] => 
                                                            [_loadedSection:protected] => 
                                                            [_extends:protected] => Array
                                                                (
                                                                )

                                                            [_loadFileErrorStr:protected] => 
                                                        )

                                                )

                                            [_skipNextIteration:protected] => 
                                            [_loadedSection:protected] => private
                                            [_extends:protected] => Array
                                                (
                                                )

                                            [_loadFileErrorStr:protected] => 
                                        )

                                    [templateName:protected] => 
                                    [renderValues:protected] => Array
                                        (
                                        )

                                    [args:protected] => Array
                                        (
                                        )

                                )

                            [2] => Header Object
                                (
                                    [db] => Zend_Db_Adapter_Pdo_Pgsql Object
                                        (
                                            [_pdoType:protected] => pgsql
                                            [_numericDataTypes:protected] => Array
                                                (
                                                    [0] => 0
                                                    [1] => 1
                                                    [2] => 2
                                                    [INTEGER] => 0
                                                    [SERIAL] => 0
                                                    [SMALLINT] => 0
                                                    [BIGINT] => 1
                                                    [BIGSERIAL] => 1
                                                    [DECIMAL] => 2
                                                    [DOUBLE PRECISION] => 2
                                                    [NUMERIC] => 2
                                                    [REAL] => 2
                                                )

                                            [_defaultStmtClass:protected] => Zend_Db_Statement_Pdo
                                            [_config:protected] => Array
                                                (
                                                    [host] => 127.0.0.1
                                                    [dbname] => criminologiadb2018
                                                    [username] => nr_admin
                                                    [password] => ciFIll2etK2g5e8b6WFe
                                                    [port] => 5432
                                                    [charset] => 
                                                    [persistent] => 
                                                    [options] => Array
                                                        (
                                                            [caseFolding] => 0
                                                            [autoQuoteIdentifiers] => 1
                                                            [fetchMode] => 2
                                                        )

                                                    [driver_options] => Array
                                                        (
                                                        )

                                                )

                                            [_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] => 
                                        )

                                    [name] => header
                                    [pageReg:protected] => PageRegistry Object
                                        (
                                            [inPageScope] => Array
                                                (
                                                    [currentPageName] => 
                                                )

                                            [ZSession] => Zend_Session_Namespace Object
                                                (
                                                    [_namespace:protected] => ZScope
                                                )

                                        )

                                    [redirectioURL:protected] => 
                                    [config:protected] => Zend_Config_Xml Object
                                        (
                                            [_skipExtends:protected] => 
                                            [_allowModifications:protected] => 
                                            [_index:protected] => 0
                                            [_count:protected] => 2
                                            [_data:protected] => Array
                                                (
                                                    [arguments] => 
                                                    [templates] => Zend_Config Object
                                                        (
                                                            [_allowModifications:protected] => 
                                                            [_index:protected] => 0
                                                            [_count:protected] => 2
                                                            [_data:protected] => Array
                                                                (
                                                                    [header] => Zend_Config Object
                                                                        (
                                                                            [_allowModifications:protected] => 
                                                                            [_index:protected] => 0
                                                                            [_count:protected] => 3
                                                                            [_data:protected] => Array
                                                                                (
                                                                                    [loc] => it
                                                                                    [path] => it/pagepart/header.tpl.htm
                                                                                    [default] => true
                                                                                )

                                                                            [_skipNextIteration:protected] => 
                                                                            [_loadedSection:protected] => 
                                                                            [_extends:protected] => Array
                                                                                (
                                                                                )

                                                                            [_loadFileErrorStr:protected] => 
                                                                        )

                                                                    [en] => Zend_Config Object
                                                                        (
                                                                            [_allowModifications:protected] => 
                                                                            [_index:protected] => 0
                                                                            [_count:protected] => 2
                                                                            [_data:protected] => Array
                                                                                (
                                                                                    [loc] => en
                                                                                    [path] => en/pagepart/header.tpl.htm
                                                                                )

                                                                            [_skipNextIteration:protected] => 
                                                                            [_loadedSection:protected] => 
                                                                            [_extends:protected] => Array
                                                                                (
                                                                                )

                                                                            [_loadFileErrorStr:protected] => 
                                                                        )

                                                                )

                                                            [_skipNextIteration:protected] => 
                                                            [_loadedSection:protected] => 
                                                            [_extends:protected] => Array
                                                                (
                                                                )

                                                            [_loadFileErrorStr:protected] => 
                                                        )

                                                )

                                            [_skipNextIteration:protected] => 
                                            [_loadedSection:protected] => private
                                            [_extends:protected] => Array
                                                (
                                                )

                                            [_loadFileErrorStr:protected] => 
                                        )

                                    [templateName:protected] => 
                                    [renderValues:protected] => Array
                                        (
                                        )

                                    [args:protected] => Array
                                        (
                                        )

                                )

                            [3] => Footer Object
                                (
                                    [db] => Zend_Db_Adapter_Pdo_Pgsql Object
                                        (
                                            [_pdoType:protected] => pgsql
                                            [_numericDataTypes:protected] => Array
                                                (
                                                    [0] => 0
                                                    [1] => 1
                                                    [2] => 2
                                                    [INTEGER] => 0
                                                    [SERIAL] => 0
                                                    [SMALLINT] => 0
                                                    [BIGINT] => 1
                                                    [BIGSERIAL] => 1
                                                    [DECIMAL] => 2
                                                    [DOUBLE PRECISION] => 2
                                                    [NUMERIC] => 2
                                                    [REAL] => 2
                                                )

                                            [_defaultStmtClass:protected] => Zend_Db_Statement_Pdo
                                            [_config:protected] => Array
                                                (
                                                    [host] => 127.0.0.1
                                                    [dbname] => criminologiadb2018
                                                    [username] => nr_admin
                                                    [password] => ciFIll2etK2g5e8b6WFe
                                                    [port] => 5432
                                                    [charset] => 
                                                    [persistent] => 
                                                    [options] => Array
                                                        (
                                                            [caseFolding] => 0
                                                            [autoQuoteIdentifiers] => 1
                                                            [fetchMode] => 2
                                                        )

                                                    [driver_options] => Array
                                                        (
                                                        )

                                                )

                                            [_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] => 
                                        )

                                    [name] => footer
                                    [pageReg:protected] => PageRegistry Object
                                        (
                                            [inPageScope] => Array
                                                (
                                                    [currentPageName] => 
                                                )

                                            [ZSession] => Zend_Session_Namespace Object
                                                (
                                                    [_namespace:protected] => ZScope
                                                )

                                        )

                                    [redirectioURL:protected] => 
                                    [config:protected] => Zend_Config_Xml Object
                                        (
                                            [_skipExtends:protected] => 
                                            [_allowModifications:protected] => 
                                            [_index:protected] => 0
                                            [_count:protected] => 2
                                            [_data:protected] => Array
                                                (
                                                    [arguments] => 
                                                    [templates] => Zend_Config Object
                                                        (
                                                            [_allowModifications:protected] => 
                                                            [_index:protected] => 0
                                                            [_count:protected] => 2
                                                            [_data:protected] => Array
                                                                (
                                                                    [header] => Zend_Config Object
                                                                        (
                                                                            [_allowModifications:protected] => 
                                                                            [_index:protected] => 0
                                                                            [_count:protected] => 3
                                                                            [_data:protected] => Array
                                                                                (
                                                                                    [loc] => it
                                                                                    [path] => it/pagepart/footer.tpl.htm
                                                                                    [default] => true
                                                                                )

                                                                            [_skipNextIteration:protected] => 
                                                                            [_loadedSection:protected] => 
                                                                            [_extends:protected] => Array
                                                                                (
                                                                                )

                                                                            [_loadFileErrorStr:protected] => 
                                                                        )

                                                                    [en] => Zend_Config Object
                                                                        (
                                                                            [_allowModifications:protected] => 
                                                                            [_index:protected] => 0
                                                                            [_count:protected] => 2
                                                                            [_data:protected] => Array
                                                                                (
                                                                                    [loc] => en
                                                                                    [path] => en/pagepart/footer.tpl.htm
                                                                                )

                                                                            [_skipNextIteration:protected] => 
                                                                            [_loadedSection:protected] => 
                                                                            [_extends:protected] => Array
                                                                                (
                                                                                )

                                                                            [_loadFileErrorStr:protected] => 
                                                                        )

                                                                )

                                                            [_skipNextIteration:protected] => 
                                                            [_loadedSection:protected] => 
                                                            [_extends:protected] => Array
                                                                (
                                                                )

                                                            [_loadFileErrorStr:protected] => 
                                                        )

                                                )

                                            [_skipNextIteration:protected] => 
                                            [_loadedSection:protected] => private
                                            [_extends:protected] => Array
                                                (
                                                )

                                            [_loadFileErrorStr:protected] => 
                                        )

                                    [templateName:protected] => 
                                    [renderValues:protected] => Array
                                        (
                                        )

                                    [args:protected] => Array
                                        (
                                        )

                                )

                        )

                    [1] => Array
                        (
                        )

                )

        )

    [7] => Array
        (
            [file] => /var/www/criminologia/wre_festival/WebRenderEngine.php
            [line] => 204
            [function] => renderPage
            [class] => PageComposer
            [type] => ->
            [args] => Array
                (
                    [0] => 
                    [1] => Array
                        (
                        )

                )

        )

    [8] => Array
        (
            [file] => /var/www/criminologia/wre_festival/WebRenderEngine.php
            [line] => 62
            [function] => processRequest
            [class] => WebRenderEngine
            [type] => ->
            [args] => Array
                (
                )

        )

    [9] => Array
        (
            [file] => /var/www/criminologia/wre_festival/WebRenderEngine.php
            [line] => 133
            [function] => __construct
            [class] => WebRenderEngine
            [type] => ->
            [args] => Array
                (
                    [0] => main.xml
                )

        )

    [10] => Array
        (
            [file] => /var/www/criminologia/portale_festival/index.php
            [line] => 140
            [function] => bootstrap
            [class] => WebRenderEngine
            [type] => ::
            [args] => Array
                (
                )

        )

)