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 tb1.pPass = 1' at line 6
    [string:Exception:private] => 
    [code:protected] => 42000
    [file:protected] => /var/www/html/OpenHouse/db/db_student.php
    [line:protected] => 43
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /var/www/html/OpenHouse/db/db_student.php
                    [line] => 43
                    [function] => execute
                    [class] => PDOStatement
                    [type] => ->
                )

            [1] => Array
                (
                    [file] => /var/www/html/OpenHouse/CertificateOpenHouse.php
                    [line] => 54
                    [function] => select
                    [class] => DB
                    [type] => ->
                )

        )

    [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 tb1.pPass = 1' at line 6
        )

)