get_results query with accent
Your SQL command is highly insecure and open to security issues like SQL injection, so even if this may not answer the question, I strongly suggest you to use $wpdb->prepare() and $wpdb->esc_like() — the latter is used to escape the % character in SQL. Additionally, you can simply use $wpdb->posts to output the table name … Read more