SELECT COUNT(*) AS nb_photos FROM photos WHERE supprimee = 0 AND (no_personne, no_album) IN ( SELECT no_personne, no_album FROM autorisations_photos WHERE autorise = -1 )
Lost connection to MySQL server during query