I have two tables: articles and trade.
They are left join on articles.tradeid = trade.id. Not every article has a trade. So there is the value of articles.tradeid 0.
When I start a search like:
SELECT * FROM articles
LEFT JOIN trade ON articles.tradeid=trade.id
WHERE CONCAT(articles.number,'|',trade.name) LIKE '%12345%'
I do not get any results although there is an article with number 12345, but it has a tradeid of 0.
Because of the join the value of trade.name is NULL.
Anyone a solution?