SELECT 
 * 

FROM 
 `task` 

WHERE 
  `ID` = :ID 
 AND 
  NOT( `name` IS NULL )