Can you help me with combining 2 similar select sql queries from the same table as shown below:
Query #1
SELECT COUNT(name)
FROM orders
WHERE name = '$product_name'
AND order_status LIKE '%returned%'
Query #2:
SELECT COUNT(name)
FROM orders
WHERE name = '$name_ru'
AND order_status LIKE '%returned%'
I have tried to separate "name='$product_name'" and "name='$name_ru'" with "OR" operator, but that showed me both results, I even tried UNION ALL but with no luck, can somebody show me the correct way of accomplishing my task?