test

SELECT * FROM gifts WHERE (man_min+0 <= 7 OR man_max+0 >= 7) AND man_min != 'none' AND man_min+0 <= 7 AND man_max+0 >= 7 ORDER BY RAND()