Im trying to insert some values with multiple selects in the query, but its given me unknown column 'rate' in where clause error
INSERT INTO oc_tax_rule (tax_class_id, tax_rate_id, based, priority) VALUES ( (SELECT tax_class_id FROM oc_tax_class WHERE title LIKE '%0%'), (SELECT tax_rate_id FROM oc_tax_rate WHERE rate ='0'), 'store', 1)
storecoming from? the fields must be matched.SELECT?WHERE title LIKE '%0%'- what if there are titles, let's say,'103'and'5004'?)