First off, I was hoping for some help with my order clause in the following code:
$arse_score_rs = $conn->Execute ( "SELECT COUNT(goal.goal_id) as arse_goals, team.team_id, matches.match_id, goal.team_id FROM matches, team, goal WHERE goal.goal_side=1 AND matches.match_id=goal.match_id GROUP BY team.team_id ORDER BY matches.match_id DESC LIMIT 1" ) or die ( $conn->ErrorMsg() );
I'd like the ORDER BY to be ORDER BY matches.match_id DESC and then goal.goal_time ASC. How can I get this to work?