4
How do you get the lid variable? From a $_GET parameter? If the variables are NOT from a POST form or otherwise fetched, the db->query() function will only perform SELECT commands and nothing else.
If you have a very big desire to use $_GET variables in INSERT, UPDATE or DELETE statements, you can use db->queryF() instead - but BEWARE and only do it if you have NO other alternative.