When i create a module, i sometimes write incorrect sql queries. After all, i'm only human

. But the annoying part is that i won't get a sql error message when that happened. I have to check if the $dbresult variable (result of the Execute function) is false. This is very annoying and time consuming in the debug process.
Is there a way to turn the database error messages on? I have tried to search it here, but could not find an answer.