 use the latest query in debug output if lastBuiltQuery is empty
 add conflict with the dbal extension
 fix bug: SQL ERROR has not been shown when an alias has been used
 Thanks to Franz Holzinger