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 field_keyword = 'property-page'' at line 5
SELECT val_value FROM cms_page_fields, cms_page_field_values WHERE val_fieldID = field_id AND val_pageID = AND field_keyword = 'property-page'
array(4) {
  [0]=>
  array(4) {
    ["file"]=>
    string(74) "/data/vhosts/creativefolkestone.org.uk/httpdocs/admin/pages/class.page.php"
    ["line"]=>
    int(309)
    ["function"]=>
    string(7) "dbQuery"
    ["args"]=>
    array(1) {
      [0]=>
      string(168) "SELECT val_value
				  FROM cms_page_fields, cms_page_field_values
				  	WHERE val_fieldID = field_id
				  AND val_pageID = 
				  AND field_keyword = 'property-page'"
    }
  }
  [1]=>
  array(7) {
    ["file"]=>
    string(73) "/data/vhosts/creativefolkestone.org.uk/httpdocs/includes/page_default.php"
    ["line"]=>
    int(10)
    ["function"]=>
    string(20) "get_custom_field_val"
    ["class"]=>
    string(4) "page"
    ["object"]=>
    object(page)#17 (32) {
      ["id"]=>
      string(0) ""
      ["parent"]=>
      string(1) "8"
      ["menu"]=>
      string(7) "mainNav"
      ["dateModified"]=>
      string(10) "2019-06-28"
      ["title"]=>
      string(8) "Brochure"
      ["menuTitle"]=>
      string(8) "Brochure"
      ["slug"]=>
      string(8) "brochure"
      ["seo_req"]=>
      string(1) "1"
      ["pos"]=>
      string(1) "5"
      ["parentAsPage"]=>
      string(1) "1"
      ["active"]=>
      string(1) "0"
      ["showTitle"]=>
      string(1) "1"
      ["status"]=>
      string(5) "draft"
      ["accesskey"]=>
      string(0) ""
      ["maximages"]=>
      string(2) "20"
      ["uselinks"]=>
      string(1) "0"
      ["header"]=>
      string(1) "0"
      ["type"]=>
      string(1) "1"
      ["type_val"]=>
      string(0) ""
      ["language"]=>
      string(1) "1"
      ["user_access"]=>
      string(0) ""
      ["menuimg"]=>
      string(1) "1"
      ["menu_class"]=>
      NULL
      ["ishome"]=>
      string(1) "0"
      ["path"]=>
      NULL
      ["text"]=>
      NULL
      ["fields"]=>
      array(7) {
        [0]=>
        array(12) {
          ["field_id"]=>
          string(1) "1"
          ["field_pageID"]=>
          string(1) "0"
          ["field_keyword"]=>
          string(4) "area"
          ["field_type"]=>
          string(6) "SELECT"
          ["field_params"]=>
          string(133) "Inherit from parent,|
Creative Foundation,CF|
Creative Quarter,CQ|
Artworks,AW|
Triennial,TR|
Quarterhouse,QH|
Book Festival,BF"
          ["field_label"]=>
          string(4) "Area"
          ["field_tips"]=>
          string(70) "The area setting defines the colour scheme and logo shown on this page"
          ["field_pos"]=>
          string(1) "0"
          ["val_id"]=>
          NULL
          ["val_pageID"]=>
          NULL
          ["val_fieldID"]=>
          NULL
          ["val_value"]=>
          NULL
        }
        [1]=>
        array(12) {
          ["field_id"]=>
          string(1) "2"
          ["field_pageID"]=>
          string(1) "0"
          ["field_keyword"]=>
          string(8) "subtitle"
          ["field_type"]=>
          string(4) "TEXT"
          ["field_params"]=>
          NULL
          ["field_label"]=>
          string(13) "Page subtitle"
          ["field_tips"]=>
          string(28) "Shows in the navigation menu"
          ["field_pos"]=>
          string(1) "1"
          ["val_id"]=>
          NULL
          ["val_pageID"]=>
          NULL
          ["val_fieldID"]=>
          NULL
          ["val_value"]=>
          NULL
        }
        [2]=>
        array(12) {
          ["field_id"]=>
          string(1) "3"
          ["field_pageID"]=>
          string(1) "0"
          ["field_keyword"]=>
          string(12) "banner-title"
          ["field_type"]=>
          string(9) "TEXTBLOCK"
          ["field_params"]=>
          string(0) ""
          ["field_label"]=>
          string(12) "Banner title"
          ["field_tips"]=>
          string(43) "The main title for pages with large banners"
          ["field_pos"]=>
          string(1) "2"
          ["val_id"]=>
          NULL
          ["val_pageID"]=>
          NULL
          ["val_fieldID"]=>
          NULL
          ["val_value"]=>
          NULL
        }
        [3]=>
        array(12) {
          ["field_id"]=>
          string(1) "4"
          ["field_pageID"]=>
          string(1) "0"
          ["field_keyword"]=>
          string(15) "banner-subtitle"
          ["field_type"]=>
          string(9) "TEXTBLOCK"
          ["field_params"]=>
          string(0) ""
          ["field_label"]=>
          string(15) "Banner subtitle"
          ["field_tips"]=>
          string(41) "The subtitle for pages with large banners"
          ["field_pos"]=>
          string(1) "3"
          ["val_id"]=>
          NULL
          ["val_pageID"]=>
          NULL
          ["val_fieldID"]=>
          NULL
          ["val_value"]=>
          NULL
        }
        [4]=>
        array(12) {
          ["field_id"]=>
          string(1) "5"
          ["field_pageID"]=>
          string(1) "0"
          ["field_keyword"]=>
          string(13) "dropdown-hide"
          ["field_type"]=>
          string(8) "CHECKBOX"
          ["field_params"]=>
          NULL
          ["field_label"]=>
          string(18) "Hide from dropdown"
          ["field_tips"]=>
          string(81) "When ticked, this page will not be shown in the dropdown menu on desktop browsers"
          ["field_pos"]=>
          string(1) "4"
          ["val_id"]=>
          NULL
          ["val_pageID"]=>
          NULL
          ["val_fieldID"]=>
          NULL
          ["val_value"]=>
          NULL
        }
        [5]=>
        array(12) {
          ["field_id"]=>
          string(1) "6"
          ["field_pageID"]=>
          string(1) "0"
          ["field_keyword"]=>
          string(13) "property-page"
          ["field_type"]=>
          string(8) "CHECKBOX"
          ["field_params"]=>
          NULL
          ["field_label"]=>
          string(13) "Property page"
          ["field_tips"]=>
          string(153) "Shows the properties sidebar with document downloads and enquiry button.  Documents are taken from the properties landing page set in the global settings"
          ["field_pos"]=>
          string(1) "5"
          ["val_id"]=>
          NULL
          ["val_pageID"]=>
          NULL
          ["val_fieldID"]=>
          NULL
          ["val_value"]=>
          NULL
        }
        [6]=>
        array(12) {
          ["field_id"]=>
          string(1) "7"
          ["field_pageID"]=>
          string(1) "0"
          ["field_keyword"]=>
          string(19) "show-filter-options"
          ["field_type"]=>
          string(8) "CHECKBOX"
          ["field_params"]=>
          NULL
          ["field_label"]=>
          string(25) "Show event filter options"
          ["field_tips"]=>
          string(66) "Shows the event calendar and filter options on event listing pages"
          ["field_pos"]=>
          string(1) "6"
          ["val_id"]=>
          NULL
          ["val_pageID"]=>
          NULL
          ["val_fieldID"]=>
          NULL
          ["val_value"]=>
          NULL
        }
      }
      ["links"]=>
      array(0) {
      }
      ["images"]=>
      array(0) {
      }
      ["leaf"]=>
      bool(true)
      ["trans_id"]=>
      NULL
      ["lang"]=>
      string(2) "en"
    }
    ["type"]=>
    string(2) "->"
    ["args"]=>
    array(1) {
      [0]=>
      string(13) "property-page"
    }
  }
  [2]=>
  array(4) {
    ["file"]=>
    string(73) "/data/vhosts/creativefolkestone.org.uk/httpdocs/includes/content-page.php"
    ["line"]=>
    int(26)
    ["args"]=>
    array(1) {
      [0]=>
      string(73) "/data/vhosts/creativefolkestone.org.uk/httpdocs/includes/page_default.php"
    }
    ["function"]=>
    string(7) "include"
  }
  [3]=>
  array(4) {
    ["file"]=>
    string(57) "/data/vhosts/creativefolkestone.org.uk/httpdocs/index.php"
    ["line"]=>
    int(187)
    ["args"]=>
    array(1) {
      [0]=>
      string(73) "/data/vhosts/creativefolkestone.org.uk/httpdocs/includes/content-page.php"
    }
    ["function"]=>
    string(7) "include"
  }
}