I ended up getting Elementor to work while this plugin is active by adding the following if statement wrapped inside the wp_es_custom_query function
Add this right after the global $wpdb; line in the function wp_es_custom_query
` if(!is_user_logged_in()) {
Added a closing bracket right before the return statement in the same function
This is sort of a hacky workaround but it works well for us as our users are not logged in.