[eluser]WanWizard[/eluser]
Bugs in input? You are passing input fields to your database queries without validation?
At the very least cast your variables;
Code:
// make sure $var is passed as a string
$this->db->where('field_name', (string) $var);
$this->db->delete('table_name');
If you validate your data, and test your code properly, these kinds of errors can't happen. And if they do, it happens in development, where you simply restore a table when it gets modified (accident or not).
I think most developers would soon be out of business if code with this quality reaches their customers. "Oops, sorry, bug. No worries, you only lost all your data..."