$query="SELECT * FROM history WHERE p_na LIKE '$p_na%' AND svreg LIKE '$svreg%' IN (SELECT * FROM history WHERE cdate BETWEEN '2013-09-12' AND '2013-12-12')";
$sql=mysql_query("$query");
am searching for data LIKE a and LIKE b that falls between to dates.
I thought a sub query will be the best method, but its not working...