After investigation I found the error code:<b>Notice</b>: Error: 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 '' at line 1
<br />Error No: 1064
<br />SELECT wishlist FROM customer WHERE customer_id = in
<b>/home/onusapp/ocart.onusapp.com/system/database/mysqliz.php</b> on line
<b>53</b>
Code: Select all
public function getDBWishlist() {
if (version_compare(VERSION,'2.1.0.0','>=')) {
$this->load->model('account/wishlist');
$result = $this->model_account_wishlist->getWishlist();
return $result;
} else {
$query = $this->db->query("SELECT wishlist FROM ". DB_PREFIX ."customer WHERE customer_id = ". $this->customer->getId())->row;
return unserialize($query['wishlist']);
}
}