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 id<>78' at line 142000/home/robbiegould/public_html/classes/db.php259
Array
(
    [0] => Array
        (
            [file] => /home/robbiegould/public_html/classes/db.php
            [line] => 259
            [function] => prepare
            [class] => PDO
            [type] => ->
            [args] => Array
                (
                    [0] => Select max(id) as maxid,min(id) as minid from cms_posts where posttype="blog" and postcategoryid= and id<>78
                )

        )

    [1] => Array
        (
            [file] => /home/robbiegould/public_html/blog-detail.php
            [line] => 9
            [function] => full_query
            [class] => db
            [type] => ->
            [args] => Array
                (
                    [0] => Select max(id) as maxid,min(id) as minid from cms_posts where posttype="blog" and postcategoryid= and id<>78
                )

        )

    [2] => Array
        (
            [file] => /home/robbiegould/public_html/index.php
            [line] => 24
            [args] => Array
                (
                    [0] => /home/robbiegould/public_html/blog-detail.php
                )

            [function] => include
        )

)