When we want to display error from mysqli we use this example:
$result = $this->mysqli->prepare($query) or die ("Mysqli Error: " . $this->mysqli->error);
Which in case of error might say something like:
Mysqli Error: Unknown column 'bla' in 'where clause'
Is there a way to show from which source file this error is coming from?