I have a scenario like this:
I want to check certain words, and if they match the term, I will have to update the contents of this page and associate it with the term. But now I'm focusing on making content pages that have some content match a specific term.
This is the idea of what I need to do, but it does not work, as more than one field is returned in the subquery.
I want to find WHERE m.module_content LIKE any of the terms that I have, but it should check all of them.
SELECT m.module_termid, t.term_name, m.module_name, m.module_content
FROM modules m
JOIN terms t ON m.module_termid = t.term_id
WHERE m.module_content LIKE '%' || (SELECT term_name FROM terms) || '%'
module_content has html text, so ultimately all I need to do is match the term and not the links yet, I will add a link to this specific term.
What is the best option? (I am using mysql btw)
To give you an example of the expected result:
Conditions : id: 1, name: hello Modules : id: 1, content: <p> Hello World </p>
I would like the modules with id 1 to be raised, as it contains content that is somewhere called "hello"
Updated:
Pablo solution fixed, but this is what happens:

Ray Davis has nothing to do with the term Float, for example, so it should not appear.