I am trying to exclude the records that have channel = all and category = Increase Customer Loyalty. These 2 conditions combined because I have records with this category but different channel. Somewhere in my SQL I am doing something wrong because executing it it excludes all the rows. E.g. all of the records when I expect to see half of them.
SELECT * FROM `flows_predefined`
WHERE platform = 'shopify'
AND status = 1
AND (
category != 'Increase Customer Loyalty'
AND channel != 'all'
)
ORDER BY `flows_predefined`.`id` DESC;