SELECT 
 * 
 
FROM 
 `mail` 
 
WHERE 
 JSON_VALUE( `data` , "$.amount" ) = :amount 
 
AND 
 `email` = :email