Following is my code:
$product_types = array('support', 'service');
$tmp = implode("','",$product_types);
node_result = db_query("SELECT nid FROM {node} WHERE type in ('%s')", $tmp);

it gives me the following error:
user warning: You have an error in your SQL syntax; check

the manual that corresponds to your MySQL server version

for the right syntax to use near

'\'support_product\',\'service_product\')' at line 1

query: SELECT nid FROM node WHERE type in

(\'support_product\',\'service_product\') in

E:\www\drupal\includes\database.mysql.inc on line 172.

i dont know how to use b_escape_string

plz help me