prefix . 'schema_ai_schemas' ); $schema_ai_deprecated_types = class_exists( 'Schema_AI_Entity_Settings' ) ? Schema_AI_Entity_Settings::$deprecated_types : array(); $schema_ai_deprecated_rows = array(); if ( ! empty( $schema_ai_deprecated_types ) ) { $schema_ai_placeholders = implode( ',', array_fill( 0, count( $schema_ai_deprecated_types ), '%s' ) ); // phpcs:disable WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared, WordPress.DB.PreparedSQLPlaceholders.UnfinishedPrepare -- $schema_ai_table sanitized via esc_sql(); $schema_ai_placeholders built from count; spread operator passes correct values. $schema_ai_deprecated_rows = $wpdb->get_results( $wpdb->prepare( "SELECT s.id, s.post_id, s.schema_type, s.validation_status, s.updated_at, p.post_title, p.post_status, p.post_type FROM {$schema_ai_table} s LEFT JOIN {$wpdb->posts} p ON p.ID = s.post_id WHERE s.schema_type IN ({$schema_ai_placeholders}) ORDER BY s.updated_at DESC LIMIT 200", ...$schema_ai_deprecated_types ) ); // phpcs:enable } ?>