I am generating the below query as part of our system:
SELECT * FROM (`videos`) WHERE (
`videos`.`title` LIKE "%apple%"
OR WHERE
`videos`.`byline` LIKE "%apple%"
OR WHERE `videos`.`description` LIKE "%apple%"
);
However, this is throwing a syntax error.
So, what's up?
Note that I need the brackets as those three where
's are linked, often followed by separate AND WHERE
's