I’m trying simply to select the products that fall within a price range, in this case between $160 and 200. The query seems normal, but its also including products with the price of $123.
SELECT * FROM product
WHERE name LIKE '%test%'
AND price >= '160' AND price <= '200' AND 1=1
LIMIT 50
Any ideas?
why not use
BETWEEN?