Try to use this function:
get_post('comment_status ->open')
checkout the codex:https://developer.wordpress.org/reference/functions/get_post/
Try to use this function:
get_post('comment_status ->open')
checkout the codex:https://developer.wordpress.org/reference/functions/get_post/