SELECT 
 * 
 
FROM 
 `task` 
 
WHERE  
  NOT( ( `name` IS NULL ) OR ( `name` = '' ) )
 AND 
  NOT( ( `start` IS NULL ) OR ( `start` = '0000-00-00 00:00:00' ) )
 AND 
  NOT( ( `stop` IS NULL ) OR ( `stop` = '0000-00-00 00:00:00' ) )
 AND 
  `start` >= :start 
 AND 
  `stop` <= :stop 
 
 
ORDER BY
 `start` DESC
 
LIMIT 
 :limit 
 
OFFSET 
 :offset
 
