Admin-ajax php not working on new wordpress version

I previously thought that the issue was ajax/javascript related but it only seemed that way because the ajax script was not receiving any data.

After inspection I saw that my query was returning 0 values. It turned out to be an issue of wp_queries breaking when using meta_query combined with the repeater format of Advanced Custom Fields.

WordPress Version 4.9 fixed this issue.