I have two tables, as an example:
content
- id
- title
news
- id
- myTitle
So I then want to be able to search both content.title and news.myTitle for the same keyword, however I can’t use a join as there isn’t a foreign key between the two tables. I’ve tried a few different queries but none returned the results I was expected so any help would be greatly appreciated. I only want a simple LIKE query to search title/myTitle in both tables.
1 Answer