[Forminator Pro] Forminator query update

Hi,
There is a very old and a very slow query in this plugin, that is a copy leftover from some previous versions of Wordpress that should be updated.
This is a reference https://core.trac.wordpress.org/ticket/24498