I try to retrieve some data using magento select. Below is my coding.
Mage::app('default');
$connection = Mage::getSingleton('core/resource')->getConnection('core_read');
$select = $connection->select()
->from('wired_points', array('*'))
->where('order_id=?',$orderID);
//$rowsArray = $connection->fetchAll($select); // return all rows
$rowArray =$connection->fetchRow($select); //return rowe
I want to add one more condition in where like log_id.
How can i add the second parameter to my where clause?