Corrected db_query syntax to comply with D7