SELECT * FROM product_category WHERE act = 1 AND product = 5 AND (height <= 1500 OR width <= 1004) ORDER BY id ASC