select count(id_media)-1 as nb_images, collections.id_collection, nom_collection, type_album, is_download, description,nb_visites_album from collections inner join medias using(id_collection) where id_user=762 and (type_album='public' or type_album='privé') group by collections.id_collection, nom_collection, type_album, is_download, description, nb_visites_album order by nom_collection
Got error 28 from storage engine