Fix error on static call

usin where method on $db = MysqliDb::getInstance(); causes error