I have a query that is working fine.
$sql = "Select tech, count (*) as tickets from $table where status = 'open' group by tech";
which gives a listing of the numer of open tickets by tech. Now I also need to show (on the same screen) how many of those open tickets are 10 days old or greater by tech. I do have a column in the table with the ticket open date (odate).
Keep get parse errors. Any ideas on how to do this without changing the where clause?