"Browse by folders" displayed wrong picture count when using MySql