Add $wpdb->prepare() to SQL statements to address security vulnerabilities.