SELECT 
 * 
 
FROM 
 `task` 
 
WHERE  
  NOT( ( `name` IS NULL ) OR ( `name` = '' ) ) 
 AND 
  `start` >= :start  
 AND
  IF( :parent<>'', `parent` = :parent, `parent` IS NULL ) 
	
ORDER BY
 `start` ASC
 
LIMIT 
 :limit 
 
OFFSET 
 :offset 
 
