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 '' at line 1
    [string:Exception:private] => 
    [code:protected] => 42000
    [file:protected] => /var/www/vhosts/mc-creation/framework/library/db/db.php
    [line:protected] => 119
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /var/www/vhosts/mc-creation/framework/library/db/db.php
                    [line] => 119
                    [function] => execute
                    [class] => PDOStatement
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 
                        )

                )

            [1] => Array
                (
                    [file] => /var/www/vhosts/mc-creation/app/module/slides/plugin/model/model.php
                    [line] => 8
                    [function] => fetchAll
                    [class] => DB
                    [type] => ->
                    [args] => Array
                        (
                            [0] => SELECT * FROM mc_slides_items WHERE module = 'pages' AND item_id = 
                        )

                )

            [2] => Array
                (
                    [file] => /var/www/vhosts/mc-creation/app/module/slides/plugin/controller/controller.php
                    [line] => 22
                    [function] => getItems
                    [class] => Module_Slides_Plugin_Model
                    [type] => ->
                    [args] => Array
                        (
                            [0] => pages
                            [1] => 
                        )

                )

            [3] => Array
                (
                    [file] => /var/www/vhosts/mc-creation/app/zone/controller/controller.php
                    [line] => 14
                    [function] => xmlpath
                    [class] => Module_Slides_Plugin_Controller
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [4] => Array
                (
                    [file] => /var/www/vhosts/mc-creation/framework/core/processor.php
                    [line] => 31
                    [function] => __construct
                    [class] => App_Zone_Controller
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [5] => Array
                (
                    [file] => /var/www/vhosts/mc-creation/framework/core/init.php
                    [line] => 26
                    [function] => process
                    [class] => Core_Processor
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [6] => Array
                (
                    [file] => /var/www/vhosts/mc-creation/index.php
                    [line] => 36
                    [args] => Array
                        (
                            [0] => /var/www/vhosts/mc-creation/framework/core/init.php
                        )

                    [function] => require_once
                )

        )

    [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 '' at line 1
        )

)
#0 /var/www/vhosts/mc-creation/framework/library/db/db.php(119): PDOStatement->execute(NULL) #1 /var/www/vhosts/mc-creation/app/module/slides/plugin/model/model.php(8): DB->fetchAll('SELECT * FROM m...') #2 /var/www/vhosts/mc-creation/app/module/slides/plugin/controller/controller.php(22): Module_Slides_Plugin_Model->getItems('pages', NULL) #3 /var/www/vhosts/mc-creation/app/zone/controller/controller.php(14): Module_Slides_Plugin_Controller->xmlpath() #4 /var/www/vhosts/mc-creation/framework/core/processor.php(31): App_Zone_Controller->__construct() #5 /var/www/vhosts/mc-creation/framework/core/init.php(26): Core_Processor->process() #6 /var/www/vhosts/mc-creation/index.php(36): require_once('/var/www/vhosts...') #7 {main}