WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND umt.meta_value NOT LIKE '%Contributor%' AND umt.meta_value NOT LIKE '%Subscr' at line 11]
		SELECT u.ID, umt1.meta_value as last_update
		FROM wp_users as u
		    LEFT JOIN wp_usermeta AS um ON ( u.ID = um.user_id AND um.meta_key = 'rank_math_robots' )
		    LEFT JOIN wp_usermeta AS umt ON ( u.ID = umt.user_id AND umt.meta_key = 'wp_capabilities' )
		    LEFT JOIN wp_usermeta AS umt1 ON ( u.ID = umt1.user_id AND umt1.meta_key = 'last_update' )
		    WHERE ( (
		 		( um.meta_key = 'rank_math_robots' AND um.meta_value NOT LIKE '%noindex%' )
		 		OR um.user_id IS NULL
			)
			AND (  umt1.meta_key = 'last_update' OR umt1.user_id IS NULL )
			AND ( umt.meta_key ='wp_capabilities' AND (  AND umt.meta_value NOT LIKE '%Contributor%' AND umt.meta_value NOT LIKE '%Subscriber%' AND umt.meta_value NOT LIKE '%Employer%' AND umt.meta_value NOT LIKE '%HR%' ) ) )
		    AND u.ID IN (
			SELECT post_author
			FROM wp_posts as p
			WHERE p.post_status = 'publish' AND p.post_password = ''
			
		)
		ORDER BY umt1.meta_value DESC