Fix error on static call

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