SELECT * FROM collections.photos WHERE 1 AND photos.md5 = '40d338d54e0851a4c0ec719278cdb4b9'