Sandeep what are you looking for I posted what needs to be added to a query above.
Simple add the AND clause anywhere right after the WHERE clause in any specific query you are trying to do. For specific ways to see how it would look simply look at other queries within our files. Many examples of the use of an AND clause in queries. The queries you want to modify are in index.php