Hi
I am trying to get the maximum count from a table but i am getting an error when i use this query.
[php]$query = “SELECT MAX FROM(SELECT type_id, COUNT(type_id) FROM activity WHERE user_id= $myid OR user_id = 3 GROUP BY type_id)”;[/php]
Can anyone help?