SELECT
portal_level,
COUNT(*) AS portal_count
FROM %TABLE_NAME%
GROUP_BY portal_level;
Fatal error: Uncaught Error: Class 'Process' not found in C:\Apache24\htdocs\films.php:7 Stack trace: #0 {main} thrown in C:\Apache24\htdocs\films.php on line 7
у вас был Linux, в данном случае Windows.