WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'GROUP BY `POS_R` ORDER BY `POS_R` limit 0,100' at line 1]
SELECT *, (DATEDIFF('2022-01-27', p.DATE_P) / 365.25) as age FROM `ratings_wta` a JOIN players_wta p on a.ID_P_R=p.ID_P WHERE DATE( `DATE_R` ) = '2022-01-17' having age < '21' GROUP BY `POS_R` ORDER BY `POS_R` limit 0,100

Rank High Player Points Diff Age Last Next vs