it would help if you posted your database structure Generally this would be SELECT * FROM `TABLENAME` WHERE `age` > 19 AND `age` < 31 AND `gender` = 'male' LIMIT 10