[BUGFIX] Fix usage of preparedStatement object in $query->statement