Good afternoon, guys. The case is as follows: I have a table with 2 blogs of category "automovel" and part of the title "Hackers" then whatever my query, can not return more than two results combining the "title" and "category" . Can you help me solve this query to get the desired result?
Currently she is finding 5 results, which means that the query is pulling blogs from the "feed" category by ignoring the combination with the title.
$result = $this->db->query("
SELECT * FROM blogs AS bl
INNER JOIN blog_categoria AS blc
ON bl.bc_id = blc.id
WHERE bl.bl_title
LIKE '%Hackers%'
AND blc.bc_urllink = 'automoveis'
OR blc.bc_urllink = 'alimentacao'
");