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 ',,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,6788,6915,6917,6919,6926,6952,6988,7227,7445,75' at line 108
    [string:Exception:private] => 
    [code:protected] => 0
    [file:protected] => /var/app/current/framework/libs/rb.php
    [line:protected] => 468
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /var/app/current/framework/libs/rb.php
                    [line] => 600
                    [function] => runQuery
                    [class] => RedBeanPHP\Driver\RPDO
                    [type] => ->
                    [args] => Array
                        (
                            [0] => SELECT content.*, 
                    CASE content.type
                      WHEN 'blog' THEN blog.published 
                      ELSE '2015-06-01 00:00:00'
                    END as published, 
                    CASE content.type
                      WHEN 'blog' THEN blog.active
                      WHEN 'image_feeds' THEN 'yes'
                      ELSE 'no'
                    END as active,
                    CASE content.type
                      WHEN 'blog' THEN blog.og_image
                      WHEN 'image_feeds' THEN image_feeds.og_image                     
                      ELSE ''
                    END as header_image,                     
                    CASE content.type
                      WHEN 'blog' THEN blog.tile_image 
                      WHEN 'image_feeds' THEN image_feeds.tile_image       
                      ELSE ''
                    END as tile_image,                       
                    CASE content.type
                      WHEN 'blog' THEN blog.related_image
                      WHEN 'image_feeds' THEN image_feeds.related_image      
                      ELSE ''
                    END as related_image,
                    CASE content.type
                      WHEN 'blog' THEN blog.thumbnail_image 
                      WHEN 'image_feeds' THEN image_feeds.thumbnail_image  
                      ELSE ''
                    END as thumbnail_image,       
                    CASE content.type
                      WHEN 'blog' THEN blog.partner_image 
                      ELSE ''
                    END as partner_image,       
                    CASE content.type
                      WHEN 'blog' THEN blog.trending_image 
                      WHEN 'image_feeds' THEN image_feeds.related_image                        
                      ELSE ''
                    END as trending_image,                         
                    CASE content.type
                      WHEN 'blog' THEN blog.title 
                      WHEN 'image_feeds' THEN image_feeds.title                             
                      ELSE ''
                    END as title,
                    CASE content.type
                      WHEN 'blog' THEN blog.display_title
                      WHEN 'image_feeds' THEN image_feeds.display_title                      
                      ELSE ''
                    END as display_title,   
                    CASE content.type
                      WHEN 'blog' THEN blog.display_description
                      ELSE ''
                    END as display_description,                      
                    CASE content.type
                      WHEN 'blog' THEN blog.excerpt 
                      ELSE ''
                    END as description,        
                    CASE content.type
                      WHEN 'blog' THEN blog.tags 
                      WHEN 'image_feeds' THEN image_feeds.tags                                                   
                      ELSE ''
                    END as tags,      
                    CASE content.type
                      WHEN 'blog' THEN blog.author 
                      WHEN 'image_feeds' THEN image_feeds.tags                                                   
                      ELSE ''
                    END as author,   
                    CASE content.type
                      WHEN 'blog' THEN blog.site 
                      WHEN 'image_feeds' THEN image_feeds.site                                                   
                      ELSE ''
                    END as site,
                    CASE content.type
                      WHEN 'blog' THEN blog.author2                   
                      ELSE ''
                    END as author2,             
                    CASE content.type
                      WHEN 'blog' THEN blog.main_video                    
                      ELSE ''
                    END as main_video,                 
                     -1 as listtype,    
                    CASE content.type
                      WHEN 'image_feeds' THEN image_feeds.filename
                      ELSE -1
                    END as feedfilename,
                    CASE content.type
                      WHEN 'image_feeds' THEN image_feeds.stream_url
                      ELSE -1
                    END as stream_url,                 
                    CASE content.type
                      WHEN 'image_feeds' THEN image_feeds.stream_live
                      ELSE -1
                    END as stream_live,
                    CASE content.type
                      WHEN 'image_feeds' THEN image_feeds.feed_type
                      ELSE -1
                    END as feedtype
                    /*** any other fields for listing content on homepage ****/
                FROM content 
                LEFT JOIN blog ON blog.id = content.parent_id AND content.type = 'blog'  
                LEFT JOIN image_feeds ON image_feeds.id = content.parent_id AND content.type = 'image_feeds'
                 WHERE content.site = 1  AND      
                content.id = 177 OR content.id = 3225 OR content.id = 2055 OR content.id = 5503 OR content.id = 6326 OR content.id = 6355 OR content.id = 6788 OR content.id = 6915 OR content.id = 6917 OR content.id = 6919 OR content.id = 6926 OR content.id = 6952 OR content.id = 6988 OR content.id = 7227 OR content.id = 7445 OR content.id = 7598 OR content.id = 7756 OR content.id = 7818 OR content.id = 7910 OR content.id = 10326 OR content.id = 10507 OR content.id = 10677 OR content.id = 10843 
              HAVING active = 'yes' AND (tile_image IS NOT NULL OR feedtype > 0) AND listtype <> 5  AND
              (stream_live = -1 OR feedtype < 4 OR (stream_live = 'yes' AND feedtype = 4))
              AND published < NOW() 
              
            ORDER BY FIELD(content.id, 177,3225,2055,5503,6326,6355,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,6788,6915,6917,6919,6926,6952,6988,7227,7445,7598,7756,7818,7910,10326,10507,10677,10843) LIMIT 50
                            [1] => Array
                                (
                                )

                        )

                )

            [1] => Array
                (
                    [file] => /var/app/current/framework/libs/rb.php
                    [line] => 2669
                    [function] => GetAll
                    [class] => RedBeanPHP\Driver\RPDO
                    [type] => ->
                    [args] => Array
                        (
                            [0] => SELECT content.*, 
                    CASE content.type
                      WHEN 'blog' THEN blog.published 
                      ELSE '2015-06-01 00:00:00'
                    END as published, 
                    CASE content.type
                      WHEN 'blog' THEN blog.active
                      WHEN 'image_feeds' THEN 'yes'
                      ELSE 'no'
                    END as active,
                    CASE content.type
                      WHEN 'blog' THEN blog.og_image
                      WHEN 'image_feeds' THEN image_feeds.og_image                     
                      ELSE ''
                    END as header_image,                     
                    CASE content.type
                      WHEN 'blog' THEN blog.tile_image 
                      WHEN 'image_feeds' THEN image_feeds.tile_image       
                      ELSE ''
                    END as tile_image,                       
                    CASE content.type
                      WHEN 'blog' THEN blog.related_image
                      WHEN 'image_feeds' THEN image_feeds.related_image      
                      ELSE ''
                    END as related_image,
                    CASE content.type
                      WHEN 'blog' THEN blog.thumbnail_image 
                      WHEN 'image_feeds' THEN image_feeds.thumbnail_image  
                      ELSE ''
                    END as thumbnail_image,       
                    CASE content.type
                      WHEN 'blog' THEN blog.partner_image 
                      ELSE ''
                    END as partner_image,       
                    CASE content.type
                      WHEN 'blog' THEN blog.trending_image 
                      WHEN 'image_feeds' THEN image_feeds.related_image                        
                      ELSE ''
                    END as trending_image,                         
                    CASE content.type
                      WHEN 'blog' THEN blog.title 
                      WHEN 'image_feeds' THEN image_feeds.title                             
                      ELSE ''
                    END as title,
                    CASE content.type
                      WHEN 'blog' THEN blog.display_title
                      WHEN 'image_feeds' THEN image_feeds.display_title                      
                      ELSE ''
                    END as display_title,   
                    CASE content.type
                      WHEN 'blog' THEN blog.display_description
                      ELSE ''
                    END as display_description,                      
                    CASE content.type
                      WHEN 'blog' THEN blog.excerpt 
                      ELSE ''
                    END as description,        
                    CASE content.type
                      WHEN 'blog' THEN blog.tags 
                      WHEN 'image_feeds' THEN image_feeds.tags                                                   
                      ELSE ''
                    END as tags,      
                    CASE content.type
                      WHEN 'blog' THEN blog.author 
                      WHEN 'image_feeds' THEN image_feeds.tags                                                   
                      ELSE ''
                    END as author,   
                    CASE content.type
                      WHEN 'blog' THEN blog.site 
                      WHEN 'image_feeds' THEN image_feeds.site                                                   
                      ELSE ''
                    END as site,
                    CASE content.type
                      WHEN 'blog' THEN blog.author2                   
                      ELSE ''
                    END as author2,             
                    CASE content.type
                      WHEN 'blog' THEN blog.main_video                    
                      ELSE ''
                    END as main_video,                 
                     -1 as listtype,    
                    CASE content.type
                      WHEN 'image_feeds' THEN image_feeds.filename
                      ELSE -1
                    END as feedfilename,
                    CASE content.type
                      WHEN 'image_feeds' THEN image_feeds.stream_url
                      ELSE -1
                    END as stream_url,                 
                    CASE content.type
                      WHEN 'image_feeds' THEN image_feeds.stream_live
                      ELSE -1
                    END as stream_live,
                    CASE content.type
                      WHEN 'image_feeds' THEN image_feeds.feed_type
                      ELSE -1
                    END as feedtype
                    /*** any other fields for listing content on homepage ****/
                FROM content 
                LEFT JOIN blog ON blog.id = content.parent_id AND content.type = 'blog'  
                LEFT JOIN image_feeds ON image_feeds.id = content.parent_id AND content.type = 'image_feeds'
                 WHERE content.site = 1  AND      
                content.id = 177 OR content.id = 3225 OR content.id = 2055 OR content.id = 5503 OR content.id = 6326 OR content.id = 6355 OR content.id = 6788 OR content.id = 6915 OR content.id = 6917 OR content.id = 6919 OR content.id = 6926 OR content.id = 6952 OR content.id = 6988 OR content.id = 7227 OR content.id = 7445 OR content.id = 7598 OR content.id = 7756 OR content.id = 7818 OR content.id = 7910 OR content.id = 10326 OR content.id = 10507 OR content.id = 10677 OR content.id = 10843 
              HAVING active = 'yes' AND (tile_image IS NOT NULL OR feedtype > 0) AND listtype <> 5  AND
              (stream_live = -1 OR feedtype < 4 OR (stream_live = 'yes' AND feedtype = 4))
              AND published < NOW() 
              
            ORDER BY FIELD(content.id, 177,3225,2055,5503,6326,6355,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,6788,6915,6917,6919,6926,6952,6988,7227,7445,7598,7756,7818,7910,10326,10507,10677,10843) LIMIT 50
                            [1] => Array
                                (
                                )

                        )

                )

            [2] => Array
                (
                    [file] => /var/app/current/framework/libs/rb.php
                    [line] => 8033
                    [function] => get
                    [class] => RedBeanPHP\Adapter\DBAdapter
                    [type] => ->
                    [args] => Array
                        (
                            [0] => SELECT content.*, 
                    CASE content.type
                      WHEN 'blog' THEN blog.published 
                      ELSE '2015-06-01 00:00:00'
                    END as published, 
                    CASE content.type
                      WHEN 'blog' THEN blog.active
                      WHEN 'image_feeds' THEN 'yes'
                      ELSE 'no'
                    END as active,
                    CASE content.type
                      WHEN 'blog' THEN blog.og_image
                      WHEN 'image_feeds' THEN image_feeds.og_image                     
                      ELSE ''
                    END as header_image,                     
                    CASE content.type
                      WHEN 'blog' THEN blog.tile_image 
                      WHEN 'image_feeds' THEN image_feeds.tile_image       
                      ELSE ''
                    END as tile_image,                       
                    CASE content.type
                      WHEN 'blog' THEN blog.related_image
                      WHEN 'image_feeds' THEN image_feeds.related_image      
                      ELSE ''
                    END as related_image,
                    CASE content.type
                      WHEN 'blog' THEN blog.thumbnail_image 
                      WHEN 'image_feeds' THEN image_feeds.thumbnail_image  
                      ELSE ''
                    END as thumbnail_image,       
                    CASE content.type
                      WHEN 'blog' THEN blog.partner_image 
                      ELSE ''
                    END as partner_image,       
                    CASE content.type
                      WHEN 'blog' THEN blog.trending_image 
                      WHEN 'image_feeds' THEN image_feeds.related_image                        
                      ELSE ''
                    END as trending_image,                         
                    CASE content.type
                      WHEN 'blog' THEN blog.title 
                      WHEN 'image_feeds' THEN image_feeds.title                             
                      ELSE ''
                    END as title,
                    CASE content.type
                      WHEN 'blog' THEN blog.display_title
                      WHEN 'image_feeds' THEN image_feeds.display_title                      
                      ELSE ''
                    END as display_title,   
                    CASE content.type
                      WHEN 'blog' THEN blog.display_description
                      ELSE ''
                    END as display_description,                      
                    CASE content.type
                      WHEN 'blog' THEN blog.excerpt 
                      ELSE ''
                    END as description,        
                    CASE content.type
                      WHEN 'blog' THEN blog.tags 
                      WHEN 'image_feeds' THEN image_feeds.tags                                                   
                      ELSE ''
                    END as tags,      
                    CASE content.type
                      WHEN 'blog' THEN blog.author 
                      WHEN 'image_feeds' THEN image_feeds.tags                                                   
                      ELSE ''
                    END as author,   
                    CASE content.type
                      WHEN 'blog' THEN blog.site 
                      WHEN 'image_feeds' THEN image_feeds.site                                                   
                      ELSE ''
                    END as site,
                    CASE content.type
                      WHEN 'blog' THEN blog.author2                   
                      ELSE ''
                    END as author2,             
                    CASE content.type
                      WHEN 'blog' THEN blog.main_video                    
                      ELSE ''
                    END as main_video,                 
                     -1 as listtype,    
                    CASE content.type
                      WHEN 'image_feeds' THEN image_feeds.filename
                      ELSE -1
                    END as feedfilename,
                    CASE content.type
                      WHEN 'image_feeds' THEN image_feeds.stream_url
                      ELSE -1
                    END as stream_url,                 
                    CASE content.type
                      WHEN 'image_feeds' THEN image_feeds.stream_live
                      ELSE -1
                    END as stream_live,
                    CASE content.type
                      WHEN 'image_feeds' THEN image_feeds.feed_type
                      ELSE -1
                    END as feedtype
                    /*** any other fields for listing content on homepage ****/
                FROM content 
                LEFT JOIN blog ON blog.id = content.parent_id AND content.type = 'blog'  
                LEFT JOIN image_feeds ON image_feeds.id = content.parent_id AND content.type = 'image_feeds'
                 WHERE content.site = 1  AND      
                content.id = 177 OR content.id = 3225 OR content.id = 2055 OR content.id = 5503 OR content.id = 6326 OR content.id = 6355 OR content.id = 6788 OR content.id = 6915 OR content.id = 6917 OR content.id = 6919 OR content.id = 6926 OR content.id = 6952 OR content.id = 6988 OR content.id = 7227 OR content.id = 7445 OR content.id = 7598 OR content.id = 7756 OR content.id = 7818 OR content.id = 7910 OR content.id = 10326 OR content.id = 10507 OR content.id = 10677 OR content.id = 10843 
              HAVING active = 'yes' AND (tile_image IS NOT NULL OR feedtype > 0) AND listtype <> 5  AND
              (stream_live = -1 OR feedtype < 4 OR (stream_live = 'yes' AND feedtype = 4))
              AND published < NOW() 
              
            ORDER BY FIELD(content.id, 177,3225,2055,5503,6326,6355,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,6788,6915,6917,6919,6926,6952,6988,7227,7445,7598,7756,7818,7910,10326,10507,10677,10843) LIMIT 50
                            [1] => Array
                                (
                                )

                        )

                )

            [3] => Array
                (
                    [file] => /var/app/current/framework/libs/rb.php
                    [line] => 8625
                    [function] => query
                    [class] => RedBeanPHP\Facade
                    [type] => ::
                    [args] => Array
                        (
                            [0] => get
                            [1] => SELECT content.*, 
                    CASE content.type
                      WHEN 'blog' THEN blog.published 
                      ELSE '2015-06-01 00:00:00'
                    END as published, 
                    CASE content.type
                      WHEN 'blog' THEN blog.active
                      WHEN 'image_feeds' THEN 'yes'
                      ELSE 'no'
                    END as active,
                    CASE content.type
                      WHEN 'blog' THEN blog.og_image
                      WHEN 'image_feeds' THEN image_feeds.og_image                     
                      ELSE ''
                    END as header_image,                     
                    CASE content.type
                      WHEN 'blog' THEN blog.tile_image 
                      WHEN 'image_feeds' THEN image_feeds.tile_image       
                      ELSE ''
                    END as tile_image,                       
                    CASE content.type
                      WHEN 'blog' THEN blog.related_image
                      WHEN 'image_feeds' THEN image_feeds.related_image      
                      ELSE ''
                    END as related_image,
                    CASE content.type
                      WHEN 'blog' THEN blog.thumbnail_image 
                      WHEN 'image_feeds' THEN image_feeds.thumbnail_image  
                      ELSE ''
                    END as thumbnail_image,       
                    CASE content.type
                      WHEN 'blog' THEN blog.partner_image 
                      ELSE ''
                    END as partner_image,       
                    CASE content.type
                      WHEN 'blog' THEN blog.trending_image 
                      WHEN 'image_feeds' THEN image_feeds.related_image                        
                      ELSE ''
                    END as trending_image,                         
                    CASE content.type
                      WHEN 'blog' THEN blog.title 
                      WHEN 'image_feeds' THEN image_feeds.title                             
                      ELSE ''
                    END as title,
                    CASE content.type
                      WHEN 'blog' THEN blog.display_title
                      WHEN 'image_feeds' THEN image_feeds.display_title                      
                      ELSE ''
                    END as display_title,   
                    CASE content.type
                      WHEN 'blog' THEN blog.display_description
                      ELSE ''
                    END as display_description,                      
                    CASE content.type
                      WHEN 'blog' THEN blog.excerpt 
                      ELSE ''
                    END as description,        
                    CASE content.type
                      WHEN 'blog' THEN blog.tags 
                      WHEN 'image_feeds' THEN image_feeds.tags                                                   
                      ELSE ''
                    END as tags,      
                    CASE content.type
                      WHEN 'blog' THEN blog.author 
                      WHEN 'image_feeds' THEN image_feeds.tags                                                   
                      ELSE ''
                    END as author,   
                    CASE content.type
                      WHEN 'blog' THEN blog.site 
                      WHEN 'image_feeds' THEN image_feeds.site                                                   
                      ELSE ''
                    END as site,
                    CASE content.type
                      WHEN 'blog' THEN blog.author2                   
                      ELSE ''
                    END as author2,             
                    CASE content.type
                      WHEN 'blog' THEN blog.main_video                    
                      ELSE ''
                    END as main_video,                 
                     -1 as listtype,    
                    CASE content.type
                      WHEN 'image_feeds' THEN image_feeds.filename
                      ELSE -1
                    END as feedfilename,
                    CASE content.type
                      WHEN 'image_feeds' THEN image_feeds.stream_url
                      ELSE -1
                    END as stream_url,                 
                    CASE content.type
                      WHEN 'image_feeds' THEN image_feeds.stream_live
                      ELSE -1
                    END as stream_live,
                    CASE content.type
                      WHEN 'image_feeds' THEN image_feeds.feed_type
                      ELSE -1
                    END as feedtype
                    /*** any other fields for listing content on homepage ****/
                FROM content 
                LEFT JOIN blog ON blog.id = content.parent_id AND content.type = 'blog'  
                LEFT JOIN image_feeds ON image_feeds.id = content.parent_id AND content.type = 'image_feeds'
                 WHERE content.site = 1  AND      
                content.id = 177 OR content.id = 3225 OR content.id = 2055 OR content.id = 5503 OR content.id = 6326 OR content.id = 6355 OR content.id = 6788 OR content.id = 6915 OR content.id = 6917 OR content.id = 6919 OR content.id = 6926 OR content.id = 6952 OR content.id = 6988 OR content.id = 7227 OR content.id = 7445 OR content.id = 7598 OR content.id = 7756 OR content.id = 7818 OR content.id = 7910 OR content.id = 10326 OR content.id = 10507 OR content.id = 10677 OR content.id = 10843 
              HAVING active = 'yes' AND (tile_image IS NOT NULL OR feedtype > 0) AND listtype <> 5  AND
              (stream_live = -1 OR feedtype < 4 OR (stream_live = 'yes' AND feedtype = 4))
              AND published < NOW() 
              
            ORDER BY FIELD(content.id, 177,3225,2055,5503,6326,6355,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,6788,6915,6917,6919,6926,6952,6988,7227,7445,7598,7756,7818,7910,10326,10507,10677,10843) LIMIT 50
                            [2] => Array
                                (
                                )

                        )

                )

            [4] => Array
                (
                    [file] => /var/app/current/framework/models/model_content.php
                    [line] => 175
                    [function] => getAll
                    [class] => RedBeanPHP\Facade
                    [type] => ::
                    [args] => Array
                        (
                            [0] => SELECT content.*, 
                    CASE content.type
                      WHEN 'blog' THEN blog.published 
                      ELSE '2015-06-01 00:00:00'
                    END as published, 
                    CASE content.type
                      WHEN 'blog' THEN blog.active
                      WHEN 'image_feeds' THEN 'yes'
                      ELSE 'no'
                    END as active,
                    CASE content.type
                      WHEN 'blog' THEN blog.og_image
                      WHEN 'image_feeds' THEN image_feeds.og_image                     
                      ELSE ''
                    END as header_image,                     
                    CASE content.type
                      WHEN 'blog' THEN blog.tile_image 
                      WHEN 'image_feeds' THEN image_feeds.tile_image       
                      ELSE ''
                    END as tile_image,                       
                    CASE content.type
                      WHEN 'blog' THEN blog.related_image
                      WHEN 'image_feeds' THEN image_feeds.related_image      
                      ELSE ''
                    END as related_image,
                    CASE content.type
                      WHEN 'blog' THEN blog.thumbnail_image 
                      WHEN 'image_feeds' THEN image_feeds.thumbnail_image  
                      ELSE ''
                    END as thumbnail_image,       
                    CASE content.type
                      WHEN 'blog' THEN blog.partner_image 
                      ELSE ''
                    END as partner_image,       
                    CASE content.type
                      WHEN 'blog' THEN blog.trending_image 
                      WHEN 'image_feeds' THEN image_feeds.related_image                        
                      ELSE ''
                    END as trending_image,                         
                    CASE content.type
                      WHEN 'blog' THEN blog.title 
                      WHEN 'image_feeds' THEN image_feeds.title                             
                      ELSE ''
                    END as title,
                    CASE content.type
                      WHEN 'blog' THEN blog.display_title
                      WHEN 'image_feeds' THEN image_feeds.display_title                      
                      ELSE ''
                    END as display_title,   
                    CASE content.type
                      WHEN 'blog' THEN blog.display_description
                      ELSE ''
                    END as display_description,                      
                    CASE content.type
                      WHEN 'blog' THEN blog.excerpt 
                      ELSE ''
                    END as description,        
                    CASE content.type
                      WHEN 'blog' THEN blog.tags 
                      WHEN 'image_feeds' THEN image_feeds.tags                                                   
                      ELSE ''
                    END as tags,      
                    CASE content.type
                      WHEN 'blog' THEN blog.author 
                      WHEN 'image_feeds' THEN image_feeds.tags                                                   
                      ELSE ''
                    END as author,   
                    CASE content.type
                      WHEN 'blog' THEN blog.site 
                      WHEN 'image_feeds' THEN image_feeds.site                                                   
                      ELSE ''
                    END as site,
                    CASE content.type
                      WHEN 'blog' THEN blog.author2                   
                      ELSE ''
                    END as author2,             
                    CASE content.type
                      WHEN 'blog' THEN blog.main_video                    
                      ELSE ''
                    END as main_video,                 
                     -1 as listtype,    
                    CASE content.type
                      WHEN 'image_feeds' THEN image_feeds.filename
                      ELSE -1
                    END as feedfilename,
                    CASE content.type
                      WHEN 'image_feeds' THEN image_feeds.stream_url
                      ELSE -1
                    END as stream_url,                 
                    CASE content.type
                      WHEN 'image_feeds' THEN image_feeds.stream_live
                      ELSE -1
                    END as stream_live,
                    CASE content.type
                      WHEN 'image_feeds' THEN image_feeds.feed_type
                      ELSE -1
                    END as feedtype
                    /*** any other fields for listing content on homepage ****/
                FROM content 
                LEFT JOIN blog ON blog.id = content.parent_id AND content.type = 'blog'  
                LEFT JOIN image_feeds ON image_feeds.id = content.parent_id AND content.type = 'image_feeds'
                 WHERE content.site = 1  AND      
                content.id = 177 OR content.id = 3225 OR content.id = 2055 OR content.id = 5503 OR content.id = 6326 OR content.id = 6355 OR content.id = 6788 OR content.id = 6915 OR content.id = 6917 OR content.id = 6919 OR content.id = 6926 OR content.id = 6952 OR content.id = 6988 OR content.id = 7227 OR content.id = 7445 OR content.id = 7598 OR content.id = 7756 OR content.id = 7818 OR content.id = 7910 OR content.id = 10326 OR content.id = 10507 OR content.id = 10677 OR content.id = 10843 
              HAVING active = 'yes' AND (tile_image IS NOT NULL OR feedtype > 0) AND listtype <> 5  AND
              (stream_live = -1 OR feedtype < 4 OR (stream_live = 'yes' AND feedtype = 4))
              AND published < NOW() 
              
            ORDER BY FIELD(content.id, 177,3225,2055,5503,6326,6355,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,6788,6915,6917,6919,6926,6952,6988,7227,7445,7598,7756,7818,7910,10326,10507,10677,10843) LIMIT 50
                        )

                )

            [5] => Array
                (
                    [file] => /var/app/current/framework/models/model_authors.php
                    [line] => 109
                    [function] => get_all_content
                    [class] => Model_Content
                    [type] => ::
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [0] => 177
                                    [1] => 3225
                                    [2] => 2055
                                    [3] => 5503
                                    [4] => 6326
                                    [5] => 6355
                                    [6] => 
                                    [7] => 
                                    [8] => 
                                    [9] => 
                                    [10] => 
                                    [11] => 
                                    [12] => 
                                    [13] => 
                                    [14] => 
                                    [15] => 
                                    [16] => 
                                    [17] => 
                                    [18] => 
                                    [19] => 
                                    [20] => 
                                    [21] => 
                                    [22] => 
                                    [23] => 
                                    [24] => 
                                    [25] => 
                                    [26] => 
                                    [27] => 
                                    [28] => 
                                    [29] => 
                                    [30] => 
                                    [31] => 
                                    [32] => 
                                    [33] => 
                                    [34] => 
                                    [35] => 
                                    [36] => 
                                    [37] => 
                                    [38] => 
                                    [39] => 
                                    [40] => 6788
                                    [41] => 6915
                                    [42] => 6917
                                    [43] => 6919
                                    [44] => 6926
                                    [45] => 6952
                                    [46] => 6988
                                    [47] => 7227
                                    [48] => 7445
                                    [49] => 7598
                                    [50] => 7756
                                    [51] => 7818
                                    [52] => 7910
                                    [53] => 10326
                                    [54] => 10507
                                    [55] => 10677
                                    [56] => 10843
                                )

                            [1] => 50
                            [2] => 
                            [3] => ORDER BY FIELD(content.id, 177,3225,2055,5503,6326,6355,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,6788,6915,6917,6919,6926,6952,6988,7227,7445,7598,7756,7818,7910,10326,10507,10677,10843)
                        )

                )

            [6] => Array
                (
                    [file] => /var/app/current/framework/classes/bios.php
                    [line] => 35
                    [function] => get_author_articles
                    [class] => Model_Authors
                    [type] => ::
                    [args] => Array
                        (
                            [0] => 9
                        )

                )

            [7] => Array
                (
                    [file] => /var/app/current/index.php
                    [line] => 220
                    [function] => index
                    [class] => bios
                    [type] => ->
                    [args] => Array
                        (
                            [0] => david-ade
                        )

                )

        )

    [previous:Exception:private] => 
)