Whats wrong with my drush script when using sql?
i think the problem is in the " / ' , try it this way :

$q = db_query("
select node.nid AS nid from {node} node where (type='feed_item') 
AND (status=0) limit 1");