I\'m trying to create a simple to use singleton class to connect to mysql database and do queries, the code works fine and i haven\'t had any problems with it, but since I\'
Singletons are bad news.
You're better off looking at dependency-injection instead, as it resolves the above issues.