0
Here is the example code:
SELECT * FROM maq_dispo
WHERE ativo = '1'
AND titulo LIKE '%coladeira%' OR descricao LIKE '%coladeira%' OR valor LIKE '%coladeira%'
The return shows all records indifferently if the field active presents the value 1.
What would be the solution?
place OR conditions within parentheses.
– Sam