$db = Mage::getSingleton('core/resource')->getConnection('core_write'); $result = $db->query('SELECT * FROM users where id=4');
$db = Mage::getSingleton('core/resource')->getConnection('core_write'); $result = $db->query('SELECT * FROM users where id=4');