RedBeanPHP\RedException\SQL Object
(
    [sqlState:RedBeanPHP\RedException\SQL:private] => 42000
    [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 'ORDER BY
                        air_date ASC
                LIMIT 1' at line 15
    [string:Exception:private] => 
    [code:protected] => 0
    [file:protected] => /var/www/vhosts/www.wciu.com/framework/libs/rb.php
    [line:protected] => 468
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /var/www/vhosts/www.wciu.com/framework/libs/rb.php
                    [line] => 600
                    [function] => runQuery
                    [class] => RedBeanPHP\Driver\RPDO
                    [type] => ->
                    [args] => Array
                        (
                            [0] => SELECT
                    schedule_wciu.*, f.url AS image_url, s.url AS show_url,
                    e.title as int_title,
                    e.description as int_desc                    
                FROM
                    schedule_wciu 
                LEFT JOIN `show` s ON s.name = schedule_wciu.title
                    LEFT JOIN file f ON f.parent_id = s.id AND 
                        f.page_type = 'show' AND f.key = 'featured'
                    LEFT JOIN `episode` e on schedule_wciu.house_num = e.house_num                        
                WHERE
                        schedule_wciu.air_date >= '2019-10-15 12:05:22'                        
                AND
                        s.Id = 
                ORDER BY
                        air_date ASC
                LIMIT 1
                            [1] => Array
                                (
                                )

                        )

                )

            [1] => Array
                (
                    [file] => /var/www/vhosts/www.wciu.com/framework/libs/rb.php
                    [line] => 2669
                    [function] => GetAll
                    [class] => RedBeanPHP\Driver\RPDO
                    [type] => ->
                    [args] => Array
                        (
                            [0] => SELECT
                    schedule_wciu.*, f.url AS image_url, s.url AS show_url,
                    e.title as int_title,
                    e.description as int_desc                    
                FROM
                    schedule_wciu 
                LEFT JOIN `show` s ON s.name = schedule_wciu.title
                    LEFT JOIN file f ON f.parent_id = s.id AND 
                        f.page_type = 'show' AND f.key = 'featured'
                    LEFT JOIN `episode` e on schedule_wciu.house_num = e.house_num                        
                WHERE
                        schedule_wciu.air_date >= '2019-10-15 12:05:22'                        
                AND
                        s.Id = 
                ORDER BY
                        air_date ASC
                LIMIT 1
                            [1] => Array
                                (
                                )

                        )

                )

            [2] => Array
                (
                    [file] => /var/www/vhosts/www.wciu.com/framework/libs/rb.php
                    [line] => 8033
                    [function] => get
                    [class] => RedBeanPHP\Adapter\DBAdapter
                    [type] => ->
                    [args] => Array
                        (
                            [0] => SELECT
                    schedule_wciu.*, f.url AS image_url, s.url AS show_url,
                    e.title as int_title,
                    e.description as int_desc                    
                FROM
                    schedule_wciu 
                LEFT JOIN `show` s ON s.name = schedule_wciu.title
                    LEFT JOIN file f ON f.parent_id = s.id AND 
                        f.page_type = 'show' AND f.key = 'featured'
                    LEFT JOIN `episode` e on schedule_wciu.house_num = e.house_num                        
                WHERE
                        schedule_wciu.air_date >= '2019-10-15 12:05:22'                        
                AND
                        s.Id = 
                ORDER BY
                        air_date ASC
                LIMIT 1
                            [1] => Array
                                (
                                )

                        )

                )

            [3] => Array
                (
                    [file] => /var/www/vhosts/www.wciu.com/framework/libs/rb.php
                    [line] => 8625
                    [function] => query
                    [class] => RedBeanPHP\Facade
                    [type] => ::
                    [args] => Array
                        (
                            [0] => get
                            [1] => SELECT
                    schedule_wciu.*, f.url AS image_url, s.url AS show_url,
                    e.title as int_title,
                    e.description as int_desc                    
                FROM
                    schedule_wciu 
                LEFT JOIN `show` s ON s.name = schedule_wciu.title
                    LEFT JOIN file f ON f.parent_id = s.id AND 
                        f.page_type = 'show' AND f.key = 'featured'
                    LEFT JOIN `episode` e on schedule_wciu.house_num = e.house_num                        
                WHERE
                        schedule_wciu.air_date >= '2019-10-15 12:05:22'                        
                AND
                        s.Id = 
                ORDER BY
                        air_date ASC
                LIMIT 1
                            [2] => Array
                                (
                                )

                        )

                )

            [4] => Array
                (
                    [file] => /var/www/vhosts/www.wciu.com/framework/models/model_schedule.php
                    [line] => 36
                    [function] => getAll
                    [class] => RedBeanPHP\Facade
                    [type] => ::
                    [args] => Array
                        (
                            [0] => SELECT
                    schedule_wciu.*, f.url AS image_url, s.url AS show_url,
                    e.title as int_title,
                    e.description as int_desc                    
                FROM
                    schedule_wciu 
                LEFT JOIN `show` s ON s.name = schedule_wciu.title
                    LEFT JOIN file f ON f.parent_id = s.id AND 
                        f.page_type = 'show' AND f.key = 'featured'
                    LEFT JOIN `episode` e on schedule_wciu.house_num = e.house_num                        
                WHERE
                        schedule_wciu.air_date >= '2019-10-15 12:05:22'                        
                AND
                        s.Id = 
                ORDER BY
                        air_date ASC
                LIMIT 1
                        )

                )

            [5] => Array
                (
                    [file] => /var/www/vhosts/www.wciu.com/framework/classes/cw26.php
                    [line] => 152
                    [function] => NextEpisode
                    [class] => Model_Schedule
                    [type] => ::
                    [args] => Array
                        (
                            [0] => 
                        )

                )

            [6] => Array
                (
                    [file] => /var/www/vhosts/www.wciu.com/framework/classes/cw26.php
                    [line] => 29
                    [function] => _find_page
                    [class] => cw26
                    [type] => ->
                    [args] => Array
                        (
                            [0] => shows
                            [1] => the-peoples-court
                        )

                )

            [7] => Array
                (
                    [file] => /var/www/vhosts/www.wciu.com/index.php
                    [line] => 189
                    [function] => index
                    [class] => cw26
                    [type] => ->
                    [args] => Array
                        (
                            [0] => shows
                            [1] => Array
                                (
                                    [0] => the-peoples-court
                                )

                        )

                )

        )

    [previous:Exception:private] => 
)