Thanks mr Simpson for your reply.
In fact I want to use subscribe2 plugin that allows to notify users who are registered in the newsletter each new post, but the problem is that the emails must be manually added, so I want to make a sql query that is used to return all users are tick Subscribe to newsletter on the form. So this way the contact list will update dynamically.
jockhip12