public static function query($query, $bindings = null) { if (is_null($bindings)) { if (!(self::$last_stmt = self::instance()->query($query))) { return false; } } else { self::$last_stmt = self::prepare($query); if (!self::$last_stmt->execute($bindings)) { return false; } } return self::$last_stmt; }