Database and SQL Learning Mode

How can the following line of code be improved?

$db->query(“insert into foo values($id,$bar)”);