Is it possible to use only one query to insert an entry to a table with one of its columns needs to use the entry's ID
example table schema:
tbl_post:
 col_id: (auto-increment)
 title: string
 body: string
 guid: string
example query:
INSERT INTO tbl_post(title, body, guid)
VALUES("sample title", "sample body", CONCAT("http://site/?id=", col_id))
result of query:
col_id | title        | body        | guid
-------+--------------+-------------+--------------
1      | sample title | sample body | http://site/?id=1
 
     
     
    