The framework is not happy: :-(
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 '.za' at line 1 : SELECT id, name, en AS content, website_link, bottle_path, latitude, longitude FROM brands WHERE id=www.rietvallei.co.za

Stack Backtrace:

File: /usr/www/users/capewv/class/mysql.class.php in Line Number: 158
Function called: query From Class: mysql

156.
157. public function get_row($sql, $mode = MYSQL_ASSOC) {
158. $res = $this->query($sql);
159.
160. if (!mysqli_num_rows($res)) {

File: /usr/www/users/capewv/class/model.class.php in Line Number: 1717
Function called: get_row From Class: mysql

1715. public function get_row($sql, $mode=MYSQLI_ASSOC){
1716.
1717. return $this->_mysql->get_row($sql, $mode);
1718. }
1719.

File: /usr/www/users/capewv/controller/brands.controller.php in Line Number: 22
Function called: get_row From Class: model

20.
21. $sql = "SELECT id, name, $_SESSION[language] AS content, website_link, bottle_path, latitude, longitude FROM brands WHERE id=$id";
22. $row = $this->_model->get_row($sql);
23.
24. if ($row){


Function called: view From Class: brands_controller

File: /usr/www/users/capewv/class/controller_base.class.php in Line Number: 258
Function called: call_user_func_array

256. if (is_object($this->_model) && (method_exists($this, $this->_action) || method_exists($this, '__call'))){
257.
258. call_user_func_array(array($this, $this->_action), $function_params);
259. }
260.

File: /usr/www/users/capewv/bootstrap.php in Line Number: 80
Function called: do_action From Class: controller_base

78. );
79.
80. $controller->do_action();
81. ?>

File: /usr/www/users/capewv/index.php in Line Number: 8
Function called: require_once

6. Turn the sanity check on to see whether all is in place.
7. */
8. require_once('./bootstrap.php');

array(38) {
  ["USER"]=>
  string(6) "capewv"
  ["HOME"]=>
  string(16) "/usr/home/capewv"
  ["FCGI_ROLE"]=>
  string(9) "RESPONDER"
  ["REDIRECT_UNIQUE_ID"]=>
  string(24) "WyjdLMQWjhIAAIZ7T@kAAAPu"
  ["REDIRECT_STATUS"]=>
  string(3) "200"
  ["UNIQUE_ID"]=>
  string(24) "WyjdLMQWjhIAAIZ7T@kAAAPu"
  ["proxy-nokeepalive"]=>
  string(1) "1"
  ["HTTP_HOST"]=>
  string(17) "capewinematch.com"
  ["HTTP_ACCEPT_ENCODING"]=>
  string(21) "x-gzip, gzip, deflate"
  ["HTTP_USER_AGENT"]=>
  string(39) "CCBot/2.0 (http://commoncrawl.org/faq/)"
  ["HTTP_ACCEPT"]=>
  string(63) "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
  ["HTTP_CONNECTION"]=>
  string(5) "close"
  ["PATH"]=>
  string(60) "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
  ["SERVER_SIGNATURE"]=>
  string(62) "
Apache Server at capewinematch.com Port 80
" ["SERVER_SOFTWARE"]=> string(6) "Apache" ["SERVER_NAME"]=> string(17) "capewinematch.com" ["SERVER_ADDR"]=> string(13) "196.22.142.18" ["SERVER_PORT"]=> string(2) "80" ["REMOTE_ADDR"]=> string(12) "54.92.153.90" ["DOCUMENT_ROOT"]=> string(21) "/usr/www/users/capewv" ["REQUEST_SCHEME"]=> string(4) "http" ["CONTEXT_PREFIX"]=> string(0) "" ["CONTEXT_DOCUMENT_ROOT"]=> string(21) "/usr/www/users/capewv" ["SERVER_ADMIN"]=> string(27) "webmaster@capewinematch.com" ["SCRIPT_FILENAME"]=> string(31) "/usr/www/users/capewv/index.php" ["REMOTE_PORT"]=> string(5) "40758" ["REDIRECT_URL"]=> string(33) "/brands/view/www.rietvallei.co.za" ["GATEWAY_INTERFACE"]=> string(7) "CGI/1.1" ["SERVER_PROTOCOL"]=> string(8) "HTTP/1.1" ["REQUEST_METHOD"]=> string(3) "GET" ["QUERY_STRING"]=> string(0) "" ["REQUEST_URI"]=> string(33) "/brands/view/www.rietvallei.co.za" ["SCRIPT_NAME"]=> string(10) "/index.php" ["PHP_SELF"]=> string(10) "/index.php" ["REQUEST_TIME_FLOAT"]=> float(1529404716.6189) ["REQUEST_TIME"]=> int(1529404716) ["argv"]=> array(0) { } ["argc"]=> int(0) }
array(2) {
  ["__stack"]=>
  array(1) {
    ["urls"]=>
    array(1) {
      [0]=>
      string(33) "/brands/view/www.rietvallei.co.za"
    }
  }
  ["language"]=>
  string(2) "en"
}