I'm building a custom module for webform and I want to get only a title for a specific content type.
In phpMyAdmin with sql query I've managed to sort what titles I need. This is the SQL query:
SELECT title FROM `node` WHERE TYPE = 'outlets' AND uid
How can I wrap this into db_query() ?