I have 2 queries and i want to use result of first query in second one
===

I have 2 queries and i want to use result of first query in second one.
The first query is like:

> select id from category where like 'About Us'

Suppose this return **Cat_id = 2**

Now in my second query where i need to use the result of 1st query 
EG: i need to use the id(returned in query 1) to enter subcategory of About Us

The Second Query is like:

> INSERT into sub_cat VALUES(NULL,**2**,History) INTO(subCat_id, Cat_id,
> 'name')

so how can i use the value returned in 1st SQL query  into my 2nd Query 