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 ') AND (t.active = true) AND (t.type=2128)) ORDER BY t.order' at line 6
    [string:Exception:private] => 
    [code:protected] => 42000
    [file:protected] => /nfs/c09/h04/mnt/139059/domains/aishti.com/html/classes/databaseinterface.class.php
    [line:protected] => 94
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /nfs/c09/h04/mnt/139059/domains/aishti.com/html/classes/databaseinterface.class.php
                    [line] => 94
                    [function] => query
                    [class] => PDO
                    [type] => ->
                    [args] => Array
                        (
                            [0] => SELECT t.*, u.name AS username, u.firstname AS author_firstname, u.lastname AS author_lastname, u.email AS author_email, a.name AS alias
				FROM brands AS t
				LEFT JOIN users AS u ON u.id = t.author
				LEFT JOIN alias AS a on a.object_id = t.id
				LEFT JOIN datatypes AS d ON d.id=t.type
				WHERE ((t.parent = ) AND (t.active = true) AND (t.type=2128)) ORDER BY t.order
                        )

                )

            [1] => Array
                (
                    [file] => /nfs/c09/h04/mnt/139059/domains/aishti.com/html/classes/databaseinterface.class.php
                    [line] => 357
                    [function] => query
                    [class] => DatabaseInterface
                    [type] => ->
                    [args] => Array
                        (
                            [0] => SELECT t.*, u.name AS username, u.firstname AS author_firstname, u.lastname AS author_lastname, u.email AS author_email, a.name AS alias
				FROM brands AS t
				LEFT JOIN users AS u ON u.id = t.author
				LEFT JOIN alias AS a on a.object_id = t.id
				LEFT JOIN datatypes AS d ON d.id=t.type
				WHERE ((t.parent = ) AND (t.active = true) AND (t.type=2128)) ORDER BY t.order
                        )

                )

            [2] => Array
                (
                    [file] => /nfs/c09/h04/mnt/139059/domains/aishti.com/html/sites/ais/templates/ais_header.tpl.php
                    [line] => 18
                    [function] => children
                    [class] => DatabaseInterface
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 
                            [1] => brands
                            [2] => 2128
                        )

                )

            [3] => Array
                (
                    [file] => /nfs/c09/h04/mnt/139059/domains/aishti.com/html/sites/ais/ais_shell.php
                    [line] => 37
                    [args] => Array
                        (
                            [0] => /nfs/c09/h04/mnt/139059/domains/aishti.com/html/sites/ais/templates/ais_header.tpl.php
                        )

                    [function] => require_once
                )

            [4] => Array
                (
                    [file] => /nfs/c09/h04/mnt/139059/domains/aishti.com/html/routing/agent_detection.php
                    [line] => 101
                    [args] => Array
                        (
                            [0] => /nfs/c09/h04/mnt/139059/domains/aishti.com/html/sites/ais/ais_shell.php
                        )

                    [function] => require_once
                )

            [5] => Array
                (
                    [file] => /nfs/c09/h04/mnt/139059/domains/aishti.com/html/routing/bootstrap.php
                    [line] => 93
                    [args] => Array
                        (
                            [0] => /nfs/c09/h04/mnt/139059/domains/aishti.com/html/routing/agent_detection.php
                        )

                    [function] => require_once
                )

            [6] => Array
                (
                    [file] => /nfs/c09/h04/mnt/139059/domains/aishti.com/html/routing/index.php
                    [line] => 20
                    [args] => Array
                        (
                            [0] => /nfs/c09/h04/mnt/139059/domains/aishti.com/html/routing/bootstrap.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 ') AND (t.active = true) AND (t.type=2128)) ORDER BY t.order' at line 6
        )

)