I am writing my custom update queries like:
$upd = Mage::getSingleton('core/resource')->getConnection('core_write')->query($qry);
But with this, I am basically writing insecure normal sql queries. What can I change in that code above, to use prepared statements?