Skip to main content
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND field_keyword = 'banner_title'' 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 = 'banner_title'
array(6) {
  [0]=>
  array(4) {
    ["file"]=>
    string(70) "/srv/data/vhosts/sallyelford.co.uk/httpdocs/admin/pages/class.page.php"
    ["line"]=>
    int(309)
    ["function"]=>
    string(7) "dbQuery"
    ["args"]=>
    array(1) {
      [0]=>
      string(167) "SELECT val_value
				  FROM cms_page_fields, cms_page_field_values
				  	WHERE val_fieldID = field_id
				  AND val_pageID = 
				  AND field_keyword = 'banner_title'"
    }
  }
  [1]=>
  array(7) {
    ["file"]=>
    string(67) "/srv/data/vhosts/sallyelford.co.uk/httpdocs/site/modules/banner.php"
    ["line"]=>
    int(17)
    ["function"]=>
    string(20) "get_custom_field_val"
    ["class"]=>
    string(4) "page"
    ["object"]=>
    object(page)#57 (32) {
      ["id"]=>
      string(0) ""
      ["parent"]=>
      string(1) "0"
      ["menu"]=>
      string(7) "mainNav"
      ["dateModified"]=>
      string(10) "2024-07-04"
      ["title"]=>
      string(13) "Super Seconds"
      ["menuTitle"]=>
      string(13) "Super Seconds"
      ["slug"]=>
      string(13) "super-seconds"
      ["seo_req"]=>
      string(1) "1"
      ["pos"]=>
      string(2) "16"
      ["parentAsPage"]=>
      string(1) "1"
      ["active"]=>
      string(1) "0"
      ["showTitle"]=>
      string(1) "0"
      ["status"]=>
      string(5) "draft"
      ["accesskey"]=>
      string(0) ""
      ["maximages"]=>
      string(1) "0"
      ["uselinks"]=>
      string(1) "0"
      ["header"]=>
      string(1) "1"
      ["type"]=>
      string(1) "1"
      ["type_val"]=>
      string(0) ""
      ["language"]=>
      string(1) "1"
      ["user_access"]=>
      string(0) ""
      ["menuimg"]=>
      string(1) "0"
      ["menu_class"]=>
      string(0) ""
      ["ishome"]=>
      string(1) "0"
      ["path"]=>
      NULL
      ["text"]=>
      NULL
      ["fields"]=>
      array(6) {
        [0]=>
        array(12) {
          ["field_id"]=>
          string(1) "1"
          ["field_pageID"]=>
          string(1) "0"
          ["field_keyword"]=>
          string(12) "banner_title"
          ["field_type"]=>
          string(4) "TEXT"
          ["field_params"]=>
          string(0) ""
          ["field_label"]=>
          string(17) "Page banner title"
          ["field_tips"]=>
          string(0) ""
          ["field_pos"]=>
          string(1) "1"
          ["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(15) "banner_subtitle"
          ["field_type"]=>
          string(4) "TEXT"
          ["field_params"]=>
          string(0) ""
          ["field_label"]=>
          string(20) "Page banner subtitle"
          ["field_tips"]=>
          string(0) ""
          ["field_pos"]=>
          string(1) "2"
          ["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(11) "banner_text"
          ["field_type"]=>
          string(9) "TEXTBLOCK"
          ["field_params"]=>
          NULL
          ["field_label"]=>
          string(16) "Page banner text"
          ["field_tips"]=>
          NULL
          ["field_pos"]=>
          string(1) "3"
          ["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_link_url"
          ["field_type"]=>
          string(4) "TEXT"
          ["field_params"]=>
          NULL
          ["field_label"]=>
          string(23) "Page banner button link"
          ["field_tips"]=>
          NULL
          ["field_pos"]=>
          string(1) "4"
          ["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(17) "banner_link_label"
          ["field_type"]=>
          string(4) "TEXT"
          ["field_params"]=>
          NULL
          ["field_label"]=>
          string(24) "Page banner button label"
          ["field_tips"]=>
          NULL
          ["field_pos"]=>
          string(1) "5"
          ["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(18) "banner_link_target"
          ["field_type"]=>
          string(6) "SELECT"
          ["field_params"]=>
          string(55) "Open in this window,_self |
Open in a new window,_blank"
          ["field_label"]=>
          string(25) "Page banner button target"
          ["field_tips"]=>
          NULL
          ["field_pos"]=>
          string(1) "5"
          ["val_id"]=>
          string(3) "251"
          ["val_pageID"]=>
          string(2) "25"
          ["val_fieldID"]=>
          string(1) "6"
          ["val_value"]=>
          string(6) "_self "
        }
      }
      ["links"]=>
      array(0) {
      }
      ["images"]=>
      array(0) {
      }
      ["leaf"]=>
      bool(true)
      ["trans_id"]=>
      NULL
      ["lang"]=>
      string(2) "en"
    }
    ["type"]=>
    string(2) "->"
    ["args"]=>
    array(1) {
      [0]=>
      string(12) "banner_title"
    }
  }
  [2]=>
  array(4) {
    ["file"]=>
    string(74) "/srv/data/vhosts/sallyelford.co.uk/httpdocs/site/includes/page-default.php"
    ["line"]=>
    int(20)
    ["args"]=>
    array(1) {
      [0]=>
      string(67) "/srv/data/vhosts/sallyelford.co.uk/httpdocs/site/modules/banner.php"
    }
    ["function"]=>
    string(7) "include"
  }
  [3]=>
  array(4) {
    ["file"]=>
    string(74) "/srv/data/vhosts/sallyelford.co.uk/httpdocs/site/includes/content-page.php"
    ["line"]=>
    int(31)
    ["args"]=>
    array(1) {
      [0]=>
      string(74) "/srv/data/vhosts/sallyelford.co.uk/httpdocs/site/includes/page-default.php"
    }
    ["function"]=>
    string(7) "include"
  }
  [4]=>
  array(4) {
    ["file"]=>
    string(58) "/srv/data/vhosts/sallyelford.co.uk/httpdocs/site/index.php"
    ["line"]=>
    int(237)
    ["args"]=>
    array(1) {
      [0]=>
      string(74) "/srv/data/vhosts/sallyelford.co.uk/httpdocs/site/includes/content-page.php"
    }
    ["function"]=>
    string(7) "include"
  }
  [5]=>
  array(4) {
    ["file"]=>
    string(53) "/srv/data/vhosts/sallyelford.co.uk/httpdocs/index.php"
    ["line"]=>
    int(2)
    ["args"]=>
    array(1) {
      [0]=>
      string(58) "/srv/data/vhosts/sallyelford.co.uk/httpdocs/site/index.php"
    }
    ["function"]=>
    string(7) "include"
  }
}