There are 2 tables in the MySQL database (photos and comments to them):
CREATE TABLE `photos` ( `photo_id` int(11) NOT NULL, `photo_title` tinytext NOT NULL, PRIMARY KEY (`photo_id`) ) ENGINE=InnoDB DEFAULT CHARSET=cp1251; CREATE TABLE `comments` ( `comment_id` int(11) NOT NULL AUTO_INCREMENT, `photo_id` int(11) unsigned NOT NULL, `user_id` int(11) unsigned NOT NULL, `comment_text` text NOT NULL, PRIMARY KEY (`comment_id`) ) ENGINE=InnoDB DEFAULT CHARSET=cp1251; You need to create a SQL query that displays a list of photos, indicating the number of comments, sorted in descending order of their number, which have less than 5 commentators.