mysqli_sql_exception Object
(
    [message:protected] => You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? AND file.page_type = 'page'' at line 1
    [string:Exception:private] => 
    [code:protected] => 1064
    [file:protected] => /var/www/vhosts/www.storytelevision.com/framework/libs/database.php
    [line:protected] => 26
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /var/www/vhosts/www.storytelevision.com/framework/libs/database.php
                    [line] => 26
                    [function] => query
                    [class] => mysqli
                    [type] => ->
                )

            [1] => Array
                (
                    [file] => /var/www/vhosts/www.storytelevision.com/framework/libs/database.php
                    [line] => 54
                    [function] => select
                    [class] => database
                    [type] => ->
                )

            [2] => Array
                (
                    [file] => /var/www/vhosts/www.storytelevision.com/framework/models/model_meta.php
                    [line] => 16
                    [function] => select_one
                    [class] => database
                    [type] => ->
                )

            [3] => Array
                (
                    [file] => /var/www/vhosts/www.storytelevision.com/framework/classes/page.php
                    [line] => 65
                    [function] => get_meta
                    [class] => Model_Meta
                    [type] => ->
                )

            [4] => Array
                (
                    [file] => /var/www/vhosts/www.storytelevision.com/framework/classes/page.php
                    [line] => 29
                    [function] => _build_page
                    [class] => page
                    [type] => ->
                )

            [5] => Array
                (
                    [file] => /var/www/vhosts/www.storytelevision.com/index.php
                    [line] => 190
                    [function] => index
                    [class] => page
                    [type] => ->
                )

        )

    [previous:Exception:private] => 
    [sqlstate:protected] => 42000
)