WHERE (startTime IS NULL AND startDate >= '$date') OR (startTime IS NOT NULL AND startTime >= '$unix')