Fix a MySQL warning in the `test_get_adjacent_post_exclude_self_term` unit test, caused by [30400].

See #21212, #22112.


git-svn-id: https://develop.svn.wordpress.org/trunk@30401 602fd350-edb4-49c9-b593-d223f7449a82