php select data with multiple "AND"
<pre><code>&lt;?php
$con=mysql_connect('localhost','root','');
mysql_connect('database',$con);
$select=mysql_query("select * from tablename where idtype='uniqueId'and episodeId='b0001'and status='yes'");
$row=mysql_fetch_array($select);
echo $row['bookName'];
?&gt;
</code></pre>

<p>Am i get wrong with above code, will be possible the multiple 'and'in the query is not a right way?</p>
