Hi, not clear for me.
Data save via
$sth = $this->db->prepare($sql);
$result = $sth->execute($params);
Data in database are saved, but! PDO error:
Warning: PDOStatement::execute(): SQLSTATE: 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 'email@example.com" at line 1 in ...\application\model\M_Database.php on line 49
In $sth value is stored with the quote like this:
':email' => string(18) "firstname.lastname@example.org"
What am I doing wrong and how to fix it?